IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2015, 5:11:02 PM (11 years ago)
Author:
watersc1
Message:

Fix analysisVer issues in forced warp and diff batches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/forcedwarpbatch.py

    r38802 r38806  
    111111           self.expID[num] = meta[0]
    112112           self.expTime[num] = meta[1]
    113            self.analysisVer[num] = meta[2]
     113# This isn't populated in the database (it's NULL).  The hack is below.
     114#           self.analysisVer[num] = meta[2]
    114115           self.skycellName[num] = meta[3]
    115116           self.tessName[num] = meta[4]
     
    123124       #tessName = self.getKeyValue(self.header, 'TESS_ID')
    124125       #self.tessID = self.scratchDb.getTessID(tessName)
     126
     127           # As the database doesn't have the software_ver entry, pull the photometry version as the analysis version.
     128           self.analysisVer[num] = self.getKeyValue(self.header[num],"PHOT_V")
    125129
    126130           if not self.analysisVer[num]: self.analysisVer[num] = -999
     
    241245     
    242246#        self.logger.infoPair("building sql ","3")
    243         sqlLine.group("analVer",           str(self.analysisVer[num]))
     247        sqlLine.group("analysisVer",           str(self.analysisVer[num]))
    244248 #       self.logger.infoPair("building sql ","3")
    245249
Note: See TracChangeset for help on using the changeset viewer.