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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Oct 21 18:51:58 BST 2014


Author: watt
Date: Tue Oct 21 18:51:58 2014
New Revision: 1822

Log:
Add getHaveFigureINS() function to Dataset.java

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

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java	Fri Oct 10 13:07:13 2014	(r1821)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java	Tue Oct 21 18:51:58 2014	(r1822)
@@ -99,6 +99,12 @@
         return testfile.exists();
     }
 
+    public boolean getHaveFigureINS() {
+        
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getInspireId() + "/fig" + getFigureString() + ".png");
+        return testfile.exists();
+    }
+
     public boolean getHaveFigureRED() {
         
         File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/fig" + getFigureString() + ".png");


More information about the HepData-svn mailing list