[HepData-svn] r1407 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Oct 7 09:58:06 BST 2010


Author: whalley
Date: Thu Oct  7 09:58:06 2010
New Revision: 1407

Log:
try to fix problem with asymmetric systematic error signs

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java	Thu Sep 23 17:21:15 2010	(r1406)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java	Thu Oct  7 09:58:06 2010	(r1407)
@@ -317,9 +317,10 @@
                                     writer.write(Formats.forms(e.getPlus(), msd, -lsd));
                                     writer.write(e.getNormType().toSymbol());
                                 } else {
+                             System.out.println("not Sysmmetric");
                                     vale = new SignificantFigures(e.getPlus());
                                     if(e.getPlus() > e.getMinus()) { writer.write("+"); }
-                                    else                           { writer.write(""); }
+                                    else                           { writer.write("+"); }
                                     if (e.getNormType() == ErrorNorm.PCT) {
                                         lsd = vale.getLSD();
                                     }
@@ -329,7 +330,8 @@
                                     writer.write(e.getNormType().toSymbol());
                                     vale = new SignificantFigures(e.getMinus());
                                     if(e.getPlus() > e.getMinus()) { writer.writeRaw(",-");}
-                                    else                           { writer.write(",+"); }
+//                                    else                           { writer.write(",+"); }
+                                    else                           { writer.write(",-"); }
                                     if (e.getNormType() == ErrorNorm.PCT) {
                                         lsd = vale.getLSD();
                                     }


More information about the HepData-svn mailing list