Changeset 31846
- Timestamp:
- Jul 8, 2011, 2:55:46 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/gpc1db.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/gpc1db.py
r31831 r31846 20 20 Constructor 21 21 ''' 22 def __init__(self, logger ):23 super(Gpc1Db, self).__init__(logger, "gpc1database")22 def __init__(self, logger, doc): 23 super(Gpc1Db, self).__init__(logger, doc, "gpc1database") 24 24 25 25 ''' … … 76 76 stage = "staticsky" 77 77 sql = "SELECT DISTINCT stack_id \ 78 FROM gpc1.staticskyInput \79 JOIN gpc1.addRun ON(gpc1.staticskyInput.sky_id = gpc1.addRun.stage_id) \78 FROM staticskyInput \ 79 JOIN addRun ON(staticskyInput.sky_id = addRun.stage_id) \ 80 80 WHERE stage = '" + stage + "' \ 81 81 AND dvodb = '" + dvoDb + "'" … … 215 215 if len(files) < 1: return "NULL" 216 216 217 return files[0]# TODO just returning first file - check217 return Fits(self.logger, self.doc, files[0]) # TODO just returning first file - check 218 218 219 219 … … 241 241 242 242 path = i.rstrip() 243 fits = Fits(self.logger, path)243 fits = Fits(self.logger, self.doc, path) 244 244 245 245 # we need to check if this is the correct cmf file, and if so then break and return 246 246 if fits.getPrimaryHeaderValue("STK_ID") == str(stackID): 247 return path247 return fits 248 248 249 249 except:
Note:
See TracChangeset
for help on using the changeset viewer.
