[HepData-svn] r1808 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jul 24 13:03:04 BST 2014


Author: watt
Date: Thu Jul 24 13:03:04 2014
New Revision: 1808

Log:
Account for zero error in isSymmetric function

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java	Thu Jul 24 09:31:36 2014	(r1807)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java	Thu Jul 24 13:03:04 2014	(r1808)
@@ -87,7 +87,7 @@
 
     /** Are the plus and minus errors symmetric? */
     public boolean isSymmetric() {
-        return (getPlus()>0.0 && getPlus().equals(-getMinus()));
+        return (getPlus()>=0.0 && getPlus().equals(-getMinus()));
     }
     /** Are the plus and minus errors symmetric? */
     public boolean isSymmetricReversed() {


More information about the HepData-svn mailing list