IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39072 for trunk


Ignore:
Timestamp:
Nov 7, 2015, 5:57:17 AM (11 years ago)
Author:
eugene
Message:

fix python errors to get StackToFrame working

Location:
trunk/ippToPsps/jython
Files:
2 edited

Legend:

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

    r38837 r39072  
    1818        self.fields.append(str(field))
    1919        self.values.append(str(value))
    20         print "* " + str(field) + " = " + str(value)
     20#       print "* " + str(field) + " = " + str(value)
    2121        return
    2222
  • trunk/ippToPsps/jython/stackbatch.py

    r39068 r39072  
    10861086        for filter in self.filters:
    10871087           
     1088            stackImageID = self.stackIDs[filter]
     1089            if stackImageID < 1: continue
     1090   
    10881091            header = self.headerSet[filter]
    10891092
    1090             stackImageID = self.stackIDs[filter]
    1091             if stackImageID == 0: continue
    1092    
    10931093            nInputs = self.getKeyInt(header, 0, 'NINPUTS')
    10941094
    1095             for input in range(nInputs):
     1095            self.logger.debugPair("found NINPUTS", nInputs)
     1096
     1097            for input in range(int(nInputs)):
    10961098               
     1099                self.logger.debugPair("trying input", str(input))
     1100
    10971101                field = "INP_%04d" % input
    10981102                inputName = self.getKeyValue(header, field)
     
    11151119                airMass = self.getKeyFloat(header, "%6.3f", field)
    11161120               
     1121                self.logger.debugPair("found header fields for", str(input))
     1122
    11171123                sql = "INSERT INTO StackToFrame "
    11181124                sql += " (stackImageID, frameID, scaleFactor, zp, expTime, airMass) VALUES ( "
Note: See TracChangeset for help on using the changeset viewer.