Changeset 37749 for trunk/ippToPsps/jython/gpc1db.py
- Timestamp:
- Dec 16, 2014, 3:35:38 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/gpc1db.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/gpc1db.py
r37748 r37749 343 343 344 344 ''' 345 Gets a list of PSPS image IDs for this diff ID 346 ''' 347 def getImageIDsForThisDiffID(self, diffID): 348 349 self.logger.debug("Querying GPC1 for image IDs for diff ID: " + str(diffID)) 350 351 # JOIN stackInputSkyfile shoule use stack_id as well as warp_id, right? (maybe not -- the join to warp is first) 352 sql = "SELECT DISTINCT CONCAT(exp_id, SUBSTR(class_id, 3, 4)) FROM ( \ 353 SELECT DISTINCT exp_id,class_id \ 354 FROM warpSkyCellMap \ 355 JOIN warpRun USING(warp_id) \ 356 JOIN diffInputSkyfile on warp1 = warp_id \ 357 WHERE diffInputSkyfile.diff_skyfile_id = " + str(diffID) + " AS a" 358 359 try: 360 rs = self.executeQuery(sql) 361 except: 362 self.logger.exception("Can't query for imageIDs") 363 364 imageIDs = [] 365 while (rs.next()): 366 imageIDs.append(rs.getString(1)) 367 rs.close() 368 369 return imageIDs 370 371 372 373 374 375 ''' 345 376 Gets some camera-stage meta data for this cam_id 346 377 '''
Note:
See TracChangeset
for help on using the changeset viewer.
