IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2017, 8:42:22 PM (9 years ago)
Author:
eugene
Message:

added some cases for testing

File:
1 edited

Legend:

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

    r40208 r40226  
    424424        # self.selectDvoObjIDs()
    425425        self.logger.infoPair("inserting dvo info: find imageID", "from externID")
    426         imageID = self.scratchDb.getImageIDFromExternIDandPhotcodeRange(self.warpSkyFileID[num],12000,12500)
    427         self.logger.infoPair("I don't like this", "it is hardwired to gpc1")
     426
     427        # get the imageID: this code has cases for simtest vs gpc1 cameras
     428        # if self.config.test:
     429        self.logger.infoPair("current camera is", self.config.camera)
     430        if self.config.camera == "gpc1":
     431            self.logger.infoPair("I don't like this", "it is hardwired to gpc1")
     432            imageID = self.scratchDb.getImageIDFromExternIDandPhotcodeRange(self.warpSkyFileID[num],12000,12500)
     433        if self.config.camera == "simtest":
     434            imageID = self.scratchDb.getImageIDFromExternIDandPhotcodeRange(self.warpSkyFileID[num],15100,15500)
     435        if imageID == 0:
     436            self.logger.infoPair ("failed to get imageID for", str(num))
     437            raise
     438
    428439        self.logger.infoPair("updating", pspsTableName)
    429440
     
    680691            self.logger.infoPair("Populating", myTable)
    681692            if not self.populateForcedWarpMeasurement(num):
    682                 self.logger.infoPair ("skippping ForcedWarpMeasurement", str(num))
     693                self.logger.infoPair ("failed on ForcedWarpMeasurement", str(num))
    683694                #continue
    684695                raise
Note: See TracChangeset for help on using the changeset viewer.