|
[HepData-svn] r1726 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/componentsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Dec 11 16:52:20 GMT 2013
Author: whalley Date: Wed Dec 11 16:52:19 2013 New Revision: 1726 Log: tweaking conditions for no plot 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 Wed Dec 11 16:36:28 2013 (r1725) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Wed Dec 11 16:52:19 2013 (r1726) @@ -380,7 +380,7 @@ boolean asymmfocus = false; boolean haswidth = false; for (Bin b : x.getBins()) { - if(b.getDescription() !=null) { plotit=false; } + if(b.getDescription() !=null && b.getFocus()==null) { plotit=false; } if (b.getLowValue() != null && b.getHighValue() != null && b.getFocus() != null) { double diff = b.getFocus() - (b.getLowValue() + b.getHighValue()) / 2.0; if (Math.abs(diff/b.getFocus()) > 1E-6) {
More information about the HepData-svn mailing list |