[HepData-svn] r1595 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Nov 1 11:57:03 GMT 2012


Author: whalley
Date: Thu Nov  1 11:57:03 2012
New Revision: 1595

Log:
allowing non symmetric dataset errors

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 Oct 29 10:46:35 2012	(r1594)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Thu Nov  1 11:57:03 2012	(r1595)
@@ -74,7 +74,11 @@
 	            else{ break; }	
             }
             for (DatasetError de : ds.getErrors()){
-                h.append("SE = " + de.getPlus());
+                if(de.getPlus()==de.getMinus()){ 
+                     h.append("SE = " + de.getPlus());
+                } else {
+                     h.append("SE = +" + de.getPlus() + ",-" + de.getMinus());
+                }
                 if(de.getNormType().toSymbol().equals("%")){h.append(" PCT");}
                 h.append(";\n");
                 h.append("CSE = " + de.getComment() + ";\n");


More information about the HepData-svn mailing list