Changeset 33235 for trunk/ippToPsps/jython/batch.py
- Timestamp:
- Feb 10, 2012, 1:40:18 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r32824 r33235 27 27 ''' 28 28 Constructor 29 30 >>> batch = Batch(1,2,3,4,5,6,7)31 >>> print batch.pspsVoTableFilePath32 "../config/2/tables.vot"33 29 ''' 34 30 def __init__(self, … … 41 37 batchID, 42 38 batchType, 43 fits): 39 fits, 40 useFullTables): 44 41 45 42 self.everythingOK = False … … 48 45 self.doc = doc 49 46 self.fits = fits 47 self.useFullTables = useFullTables 50 48 51 49 # set up logging … … 82 80 self.dvoGpc1Label = self.doc.find("dvo/gpc1Label").text 83 81 self.dvoLocation = self.doc.find("dvo/location").text 84 self.useFullTables = int(self.doc.find("dvo/useFullTables").text)85 82 self.scratchDb = ScratchDb(logger, self.doc, self.useFullTables) 86 83 … … 496 493 def getIDsFromDVO(self): 497 494 498 if self.scratchDb.getRowCount( "dvoMeta") < 1:499 self.logger.error ("No DVO IDs found in dvoMeta")495 if self.scratchDb.getRowCount(self.scratchDb.dvoImagesTable) < 1: 496 self.logger.errorInfo("No DVO images found in", self.scratchDb.dvoImagesTable) 500 497 return False 501 498
Note:
See TracChangeset
for help on using the changeset viewer.
