- Timestamp:
- Aug 12, 2014, 3:18:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/ippToPsps/jython/queue.py
r37133 r37238 29 29 super(Queue, self).__init__(argv) 30 30 31 # print "inited ipptopsps"32 33 31 # create various objects 34 32 self.gpc1Db = Gpc1Db(self.logger, self.config) 35 # print "connect to gpc1"36 33 37 34 self.datastore = Datastore(self.logger, self.skychunk, self.ippToPspsDb) 38 39 print "made datastore"40 35 41 36 # connect to scratch database 42 37 self.scratchDb = ScratchDb(self.logger, self.config) 43 38 44 print "connect to scratchdb"45 46 39 try: 47 print "does this work?"48 40 self.dvoObjects = DvoObjects(self.logger, self.config, self.skychunk, self.ippToPspsDb, self.scratchDb) 49 41 except: 50 42 self.exitProgram("Unable to create instance of DvoObject") 51 43 raise 52 53 print "got objects"54 44 55 45 self.skychunk.printAll() … … 144 134 if (dec > 85): raise 145 135 146 print "dec, dD: ", dec, dD ,self.skychunk.maxDec136 # print "dec, dD: ", dec, dD ,self.skychunk.maxDec 147 137 148 138 # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds … … 152 142 ra = self.skychunk.minRa + dR 153 143 154 print "ra, dR, maxRa", ra, dR, self.skychunk.maxRa144 # print "ra, dR, maxRa", ra, dR, self.skychunk.maxRa 155 145 156 146 # XXX not sure why this is not done with a for-loop... 157 147 while dec <= self.skychunk.maxDec: 158 148 while ra <= self.skychunk.maxRa: 159 print "here"160 149 # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds 161 150 minRA = ra - dR … … 175 164 len(ids))) 176 165 177 print "box_id: ", box_id178 179 166 if len(ids) > 0: self.ippToPspsDb.insertPending(box_id, batchType, ids) 180 167 # print "inserted pending"
Note:
See TracChangeset
for help on using the changeset viewer.
