Changeset 32596 for trunk/ippToPsps
- Timestamp:
- Oct 28, 2011, 10:24:40 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r32589 r32596 54 54 self.logger.debug("Batch class constructor") 55 55 56 # check FITS file is ok57 if self.fits:58 self.header = self.fits.getPrimaryHeader()59 60 # now check that the fits header is readable61 if not self.header: return62 63 # if no fits file, and this is not an IN batch, then get out of here64 else:65 if batchType != "IN": return66 67 56 # set up class variables 68 57 self.id = id … … 72 61 self.batchType = batchType; 73 62 self.pspsVoTableFilePath = "../config/" + batchType + "/tables.vot" 63 64 # check FITS file is ok 65 if self.fits: 66 self.header = self.fits.getPrimaryHeader() 67 68 # now check that the fits header is readable 69 if not self.header: 70 logger.errorPair("Could not read FITS for id", "%d" % id) 71 return 72 73 # if no fits file, and this is not an IN batch, then get out of here 74 else: 75 if batchType != "IN": 76 logger.errorPair("Could not read FITS for id", "%d" % id) 77 return 74 78 75 79 # get info from config
Note:
See TracChangeset
for help on using the changeset viewer.
