IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34641 for trunk


Ignore:
Timestamp:
Nov 1, 2012, 7:46:51 AM (14 years ago)
Author:
bills
Message:

Fix some errors in new code. Shift FLAGS from cps table 45 bits instead of 46
to avoid overflow

File:
1 edited

Legend:

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

    r34631 r34641  
    457457               ,PSF_QF_PERFECT \
    458458               ,PSF_CHISQ \
    459                ,FLAGS2 << 32 | FLAGS\
     459               ,FLAGS2 << 32 | FLAGS \
    460460               ,SKY  / " + self.header['EXPTIME'] + " \
    461461               ,SKY_SIGMA  / " + self.header['EXPTIME'] + " \
     
    553553        sql = "UPDATE " + tableName + " AS a, "  + self.scratchDb.dvoDetectionTable + " AS b \
    554554            SET a.ra = b.ra, \
    555             a.dec_ = b.dec_, \
     555            a.dec = b.dec_, \
    556556            a.raErr = b.raErr, \
    557557            a.decErr = b.decErr, \
     
    687687               a.detectID = b.detectID, \
    688688               a.objID = b.objID, \
    689                a.infoFlag = b.flags << 46 | a.infoFlag \
     689               a.infoFlag = b.flags << 45 | a.infoFlag \
    690690               WHERE a.ippDetectID = b.ippDetectID \
    691691               AND b.imageID = " + str(imageID)
Note: See TracChangeset for help on using the changeset viewer.