IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2014, 2:34:33 PM (12 years ago)
Author:
eugene
Message:

add method getKeyFloat to generate a safe header float for sql; add some options to handle test data cases; StackModelFit* now basically works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/batch.py

    r37138 r37160  
    242242
    243243         if key in header: return header[key]
     244         else:
     245             self.logger.errorPair("Missing header field", key)
     246             return "NULL"
     247
     248    '''
     249    Returns the string keyword value from this header or else "NULL"
     250    '''
     251    def getKeyFloat(self, header, format, key):
     252
     253         if key in header:
     254             value = format % float(header[key])
     255             return value
    244256         else:
    245257             self.logger.errorPair("Missing header field", key)
Note: See TracChangeset for help on using the changeset viewer.