Changeset 34926 for branches/eam_branches/ipp-20121219/ippToPsps
- Timestamp:
- Jan 15, 2013, 5:53:39 AM (14 years ago)
- 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 64 64 # now check that the fits header is readable 65 65 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) 67 67 raise 68 68 -
branches/eam_branches/ipp-20121219/ippToPsps/jython/detectionbatch.py
r34902 r34926 89 89 #self.endY = 8 90 90 91 # get a f reprimary header values. if in test mode, then use defaults91 # get a few primary header values. if in test mode, then use defaults 92 92 if self.safeDictionaryAccessWithDefault(self.header, 'MJD-OBS', "1") == "NULL": 93 93 self.logger.errorPair("Could not get", "MJD-OBS") … … 234 234 except: pass 235 235 236 # insert all detectionsinto table236 # insert image metadata into table 237 237 sql = "INSERT INTO " + tableName + " ( \ 238 238 frameID \ … … 386 386 except: pass 387 387 388 # delete all detections with PSF_INST_MAG < 17.5, as decreed by Gene388 # delete all detections with PSF_INST_MAG < -17.5, as decreed by Gene 389 389 BEFORE = self.scratchDb.getRowCount(ippTableName) 390 390 #don't do this anymore -
branches/eam_branches/ipp-20121219/ippToPsps/jython/loader.py
r34661 r34926 141 141 ids = self.ippToPspsDb.getPendingIdsForThisBox(boxId, batchType) 142 142 143 # ids are the stage_ids for items to be processed (eg, stack_id for a stack CMF, cam_id for P2 smf) 144 143 145 if len(ids) < 1: 144 146 self.logger.debugPair("No " + batchType + " items found in this box", "skipping") … … 162 164 self.logger.infoPair("DVO to be ingested", "%.1f GB" % sizeToBeIngested) 163 165 self.logger.infoPair("smfs-per-GB", "%.1f" % smfsPerGB) 166 164 167 # 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 165 171 if batchType == 'P2' and smfsPerGB > 30: 166 172 if not self.dvoDetections.sync(): … … 170 176 useFullTables = 1 171 177 178 ''' 179 NOTE EAM : "TheseItems" refers to each of the stack CMFs, camera SMFs, or object batches 180 ''' 172 181 self.logger.infoBool("Using pre-ingested DVO data?", useFullTables) 173 182 if not self.processTheseItems(batchType, ids, useFullTables):
Note:
See TracChangeset
for help on using the changeset viewer.
