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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Oct 22 17:06:52 BST 2012


Author: whalley
Date: Mon Oct 22 17:06:52 2012
New Revision: 1589

Log:
modifications to handling of lone statistcial 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 22 17:02:47 2012	(r1588)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java	Mon Oct 22 17:06:52 2012	(r1589)
@@ -253,11 +253,11 @@
                                 if(nerr == 1) {
                                     
                                     if(err.isSymmetric()){
-                                        if(err.getSourceType().toString().equals("statistical")){ s.append(" (STAT=" + f_plus + norm+")");} 
+                                        if(yax.getPoint(i+1).getErrors().size()==1&&err.getSourceType().toString().equals("statistical")){ s.append(" (STAT=" + f_plus + norm+")");} 
                                         else{ s.append(" +- " + f_plus + norm);} 
                                     }
                                     else{
-                                        if(err.getSourceType().toString().equals("statistical")){ s.append(" (STAT=+" + f_plus + norm + ",-" + f_minus + norm+")");} 
+                                        if(yax.getPoint(i+1).getErrors().size()==1&&err.getSourceType().toString().equals("statistical")){ s.append(" (STAT=+" + f_plus + norm + ",-" + f_minus + norm+")");} 
                                         else { s.append(" +" + f_plus + norm + ",-" + f_minus + norm);}
                                     }
                                 }


More information about the HepData-svn mailing list