|
[HepData-svn] r1428 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Jan 13 09:55:19 GMT 2011
Author: whalley Date: Thu Jan 13 09:55:19 2011 New Revision: 1428 Log: fix for upside down +- sign Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/PlainFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/PlainFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/PlainFormatter.java Thu Jan 13 09:54:20 2011 (r1427) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/PlainFormatter.java Thu Jan 13 09:55:19 2011 (r1428) @@ -149,8 +149,14 @@ for (Uncertainty e : p.getErrors()) { try { Uncertainty ae = e.getAbsoluteError(p); - s.append("\t+" + ae.getPlus()); - s.append("\t-" + ae.getMinus()); + if(ae.isSymmetricReversed()){ + s.append("\t" + ae.getPlus()); + s.append("\t+" + ae.getMinus()); + } + else { + s.append("\t+" + ae.getPlus()); + s.append("\t-" + ae.getMinus()); + } } catch (HDException hde) { s.append("\t+?\t?"); }
More information about the HepData-svn mailing list |