Changeset 32589 for trunk/ippToPsps
- Timestamp:
- Oct 28, 2011, 11:40:06 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r32467 r32589 54 54 self.logger.debug("Batch class constructor") 55 55 56 # check FITS file is ok - TODO could be neater56 # check FITS file is ok 57 57 if self.fits: 58 58 self.header = self.fits.getPrimaryHeader() 59 60 # now check that the fits header is readable 59 61 if not self.header: return 62 63 # if no fits file, and this is not an IN batch, then get out of here 64 else: 65 if batchType != "IN": return 60 66 61 67 # set up class variables … … 91 97 # create datastore object 92 98 self.datastore = Datastore(self.logger, self.doc, self.ippToPspsDb) 93 94 # create a new batch95 #self.batchID = self.ippToPspsDb.createNewBatch(96 # self.batchType,97 # self.id,98 # self.survey,99 # self.dvoGpc1Label,100 # self.datastore.product)101 99 102 100 # get local storage location from config … … 265 263 else: root.attrib['maxObjId'] = str(self.maxObjID) 266 264 267 # get md5sum268 #p = Popen("md5sum " + self.outputFitsPath, shell=True, stdout=PIPE)269 #p.wait()270 #out = p.stdout.read()271 #md5sum = out[0:out.rfind(" ")]272 273 # get file size274 #fileSize = os.path.getsize(self.outputFitsPath)275 276 265 # file information 277 266 child = Element('file') 278 267 root.append(child) 279 268 child.attrib['name'] = self.outputFitsFile 280 #child.attrib['bytes'] = str(fileSize)281 #child.attrib['md5'] = md5sum282 269 283 270 # now create doc and write to file
Note:
See TracChangeset
for help on using the changeset viewer.
