Changeset 38837 for trunk/ippToPsps/jython/batch.py
- Timestamp:
- Oct 10, 2015, 12:40:44 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r38602 r38837 234 234 235 235 ''' 236 Returns the stringkeyword value from this header or else "NULL"236 Returns the float keyword value from this header or else "NULL" 237 237 ''' 238 238 def getKeyFloat(self, header, format, key): 239 239 240 240 if key in header: 241 value = f ormat % float(header[key])241 value = float(format % float(header[key])) 242 242 else: 243 243 self.logger.errorPair("Missing header field", key) 244 value = f ormat % -999.9244 value = float(format % -999.9) 245 245 246 246 return value … … 414 414 ''' 415 415 def createEmptyPspsTables(self): 416 print "THIS SUCKS" 417 self.pspsTables = stilts.treads(self.pspsVoTableFilePath) 418 for table in self.pspsTables: 419 self.logger.debug("Creating PSPS table: " + table.name) 420 self.logger.infoPair("creating psps table ",table.name) 421 table.write(self.scratchDb.url + '#' + table.name) 422 self.tablesToExport.append(table.name) 423 424 return True 416 self.pspsTables = stilts.treads(self.pspsVoTableFilePath) 417 for table in self.pspsTables: 418 self.logger.debug("Creating PSPS table: " + table.name) 419 self.logger.infoPair("creating psps table ",table.name) 420 table.write(self.scratchDb.url + '#' + table.name) 421 self.tablesToExport.append(table.name) 422 423 return True 425 424 426 425 '''
Note:
See TracChangeset
for help on using the changeset viewer.
