IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2014, 5:36:39 AM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/ippToPsps/jython/loader.py

    r35417 r36826  
    182182                            # XXXX EAM : in parallel model, this should happen for all P2 & Stack batches
    183183                            #
    184                             if (batchType == 'P2' or batchType == 'ST') and smfsPerGB > 30:
     184                            if (batchType == 'P2' or batchType == 'ST' or batchType == 'DF' or batchType == 'FW') and smfsPerGB > 30:
    185185                                if not self.dvoDetections.sync():
    186186                                    self.logger.errorPair("Could not sync DVO with MySQL", "skipping")
     
    234234        # loop round IDs of all items to be processed
    235235        self.ippToPspsDb.lockBatchTable()
    236         self.logger.infoPair("heather:","lockbatchtable")
     236        #self.logger.infoPair("heather:","lockbatchtable")
    237237        unattemptedCount = 0
    238238        for id in ids:
    239             self.logger.infoPair("heather:","in ids")
    240             self.logger.infoPair("heather:id",str(id))
     239            #self.logger.infoPair("heather:","in ids")
     240            #self.logger.infoPair("heather:id",str(id))
    241241            batchID = self.ippToPspsDb.createNewBatch(batchType, id)
    242             self.logger.infoPair("heather:","creatednewbatch")
    243             self.logger.infoPair("heather:batchId", str(batchID))
     242            #self.logger.infoPair("heather:","creatednewbatch")
     243            #self.logger.infoPair("heather:batchId", str(batchID))
    244244            if batchID < 0:
    245245                unattemptedCount += 1
    246246                continue
    247             self.logger.infoPair("heather:","passed logic")
     247            #self.logger.infoPair("heather:","passed logic")
    248248            self.ippToPspsDb.unlockTables()
    249             self.logger.infoPair("heather:","unlock table")
     249            #self.logger.infoPair("heather:","unlock table")
    250250            self.ippToPspsDb.deletePendingItem(batchType, id)
    251             self.logger.infoPair("heather:","deleted pending item")
     251            #self.logger.infoPair("heather:","deleted pending item")
    252252
    253253            # catch any raised exceptions in batch constructors
    254254            try:
    255255                if batchType == "P2":
     256                    self.logger.infoPair("defining P2 batch for cam_id:",id)
    256257                    batch = DetectionBatch(self.logger,
    257258                            self.config,
     
    264265                            useFullTables)
    265266                elif batchType == "ST":
     267                    self.logger.infoPair("defining ST batch for sky_id:",id)
    266268                    batch = StackBatch(self.logger,
    267269                            self.config,
     
    285287                            useFullTables)
    286288   
     289                elif batchType == "DF":
     290                    batch = DiffBatch(self.logger,
     291                            self.config,
     292                            self.skychunk,
     293                            self.gpc1Db,
     294                            self.ippToPspsDb,
     295                            self.scratchDb,
     296                            id,
     297                            batchID,
     298                            useFullTables)
     299   
     300                elif batchType == "DO":
     301                    batch = DiffObjectBatch(self.logger,
     302                            self.config,
     303                            self.skychunk,
     304                            self.gpc1Db,
     305                            self.ippToPspsDb,
     306                            self.scratchDb,
     307                            id,
     308                            batchID,
     309                            useFullTables)
     310   
     311                elif batchType == "FW":
     312                    batch = ForcedWarpBatch(self.logger,
     313                            self.config,
     314                            self.skychunk,
     315                            self.gpc1Db,
     316                            self.ippToPspsDb,
     317                            self.scratchDb,
     318                            id,
     319                            batchID,
     320                            useFullTables)
     321   
     322                elif batchType == "FO":
     323                    batch = ForcedObjectBatch(self.logger,
     324                            self.config,
     325                            self.skychunk,
     326                            self.gpc1Db,
     327                            self.ippToPspsDb,
     328                            self.scratchDb,
     329                            id,
     330                            batchID,
     331                            useFullTables)
     332                   
    287333                batch.run()
    288334   
Note: See TracChangeset for help on using the changeset viewer.