|
[HepData-svn] r1795 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Apr 29 14:33:27 BST 2014
Author: whalley Date: Tue Apr 29 14:33:27 2014 New Revision: 1795 Log: fixing ScanVis output ot deal with upper and lower limits Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java Tue Apr 29 14:07:08 2014 (r1794) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/JhepworkFormatter.java Tue Apr 29 14:33:27 2014 (r1795) @@ -136,10 +136,18 @@ } } else if (b.getRelation() == Relation.GREATER || b.getRelation() == Relation.GREATEREQUALS){ - xdn = b.getLowValue(); + xup = 0.0; + xdn = 0.0; + xfocus = b.getLowValue(); + message = " # NOTE .... xvalue is lower value limit"; + row.setAttribute("xfocus", xfocus); } else if (b.getRelation() == Relation.LESS || b.getRelation() == Relation.LESSEQUALS){ - xup = b.getHighValue(); + xfocus = b.getHighValue(); + xup = 0.0; + xdn = 0.0; + message = " # NOTE .... xvalue is upper value limit"; + row.setAttribute("xfocus", xfocus); } Double yval = p.getValue(); String ydesc = p.getDescription();
More information about the HepData-svn mailing list |