|
[HepData-svn] r1615 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Apr 15 10:31:50 BST 2013
Author: whalley Date: Mon Apr 15 10:31:50 2013 New Revision: 1615 Log: tio handle +- in the x axis differently Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java Mon Mar 18 12:00:49 2013 (r1614) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java Mon Apr 15 10:31:50 2013 (r1615) @@ -188,7 +188,10 @@ } if(ds.getXAxis(nx+1).getBin(i+1).getFocus() != null){ s.append(" " + ds.getXAxis(nx+1).getBin(i+1).getFocus()); - if(ds.getXAxis(nx+1).getBin(i+1).getLowValue() != null + if(ds.getXAxis(nx+1).getBin(i+1).getWidth() != null && ds.getXAxis(nx+1).getBin(i+1).getWidth() != 0.0){ + s.append(" +- " + ds.getXAxis(nx+1).getBin(i+1).getWidth()); + } + else if(ds.getXAxis(nx+1).getBin(i+1).getLowValue() != null && ds.getXAxis(nx+1).getBin(i+1).getHighValue() != null && !ds.getXAxis(nx+1).getBin(i+1).getLowValue().equals(ds.getXAxis(nx+1).getBin(i+1).getHighValue())){ s.append(" (BIN=" + ds.getXAxis(nx+1).getBin(i+1).getLowValue() + " TO " + ds.getXAxis(nx+1).getBin(i+1).getHighValue() + ")");
More information about the HepData-svn mailing list |