IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34926


Ignore:
Timestamp:
Jan 15, 2013, 5:53:39 AM (14 years ago)
Author:
eugene
Message:

added some comments, clarified others

Location:
branches/eam_branches/ipp-20121219/ippToPsps/jython
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/batch.py

    r33787 r34926  
    6464            # now check that the fits header is readable
    6565            if not self.header:
    66                 logger.errorPair("Could not read FITS for id", "%d" % id)
     66                logger.errorPair("Could not read FITS PHU for id", "%d" % id)
    6767                raise
    6868
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/detectionbatch.py

    r34902 r34926  
    8989       #self.endY = 8
    9090
    91        # get a fre primary header values. if in test mode, then use defaults
     91       # get a few primary header values. if in test mode, then use defaults
    9292       if self.safeDictionaryAccessWithDefault(self.header, 'MJD-OBS', "1") == "NULL":
    9393           self.logger.errorPair("Could not get", "MJD-OBS")
     
    234234        except: pass
    235235
    236         # insert all detections into table
     236        # insert image metadata into table
    237237        sql = "INSERT INTO " + tableName + " ( \
    238238               frameID \
     
    386386        except: pass
    387387       
    388         # delete all detections with PSF_INST_MAG < 17.5, as decreed by Gene
     388        # delete all detections with PSF_INST_MAG < -17.5, as decreed by Gene
    389389        BEFORE = self.scratchDb.getRowCount(ippTableName)
    390390        #don't do this anymore
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/loader.py

    r34661 r34926  
    141141                    ids = self.ippToPspsDb.getPendingIdsForThisBox(boxId, batchType)
    142142               
     143                    # ids are the stage_ids for items to be processed (eg, stack_id for a stack CMF, cam_id for P2 smf)
     144
    143145                    if len(ids) < 1:
    144146                        self.logger.debugPair("No " + batchType + " items found in this box", "skipping")
     
    162164                        self.logger.infoPair("DVO to be ingested", "%.1f GB" % sizeToBeIngested)
    163165                        self.logger.infoPair("smfs-per-GB", "%.1f" % smfsPerGB)
     166
    164167                        # should do we pre-ingest stuff from DVO?
     168                        # NOTE EAM : this chunk loads the dvo detections into the mysql db
     169                        # XXXX EAM : this should happen for both P2 and Stack detection
     170                        # XXXX EAM : in parallel model, this should happen for all P2 & Stack batches
    165171                        if batchType == 'P2' and smfsPerGB > 30:
    166172                            if not self.dvoDetections.sync():
     
    170176                            useFullTables = 1
    171177               
     178                    '''
     179                    NOTE EAM : "TheseItems" refers to each of the stack CMFs, camera SMFs, or object batches
     180                    '''
    172181                    self.logger.infoBool("Using pre-ingested DVO data?", useFullTables)
    173182                    if not self.processTheseItems(batchType, ids, useFullTables):
Note: See TracChangeset for help on using the changeset viewer.