Changeset 35656
- Timestamp:
- Jun 12, 2013, 2:22:27 PM (13 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 3 edited
-
config/settings.xml (modified) (1 diff)
-
jython/queue.py (modified) (4 diffs)
-
jython/stackbatch.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/config/settings.xml
r35503 r35656 6 6 <!-- path for storing logs --> 7 7 <!-- XXX Need to make this different for tests and real, also for different installations --> 8 <logPath>logs</logPath> 9 8 <logPath>SAS15</logPath> 10 9 <!-- local scratch Db section (REAL version) --> 11 10 <localdatabase> -
trunk/ippToPsps/jython/queue.py
r35605 r35656 134 134 135 135 dD = 0.5*self.skychunk.boxSize 136 136 137 dec = self.skychunk.minDec + dD 138 #dec = self.skychunk.minDec 139 137 140 if (dec > 85): raise 138 141 … … 142 145 #dR = 0.5*self.skychunk.boxSize / math.cos(math.radians(dec)) 143 146 dR = 0.5*self.skychunk.boxSize 147 144 148 ra = self.skychunk.minRa + dR 145 149 … … 149 153 while dec <= self.skychunk.maxDec: 150 154 while ra <= self.skychunk.maxRa: 151 155 print "here" 152 156 # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds 153 157 minRA = ra - dR … … 167 171 len(ids))) 168 172 169 #print "box_id: ", box_id173 print "box_id: ", box_id 170 174 171 175 if len(ids) > 0: self.ippToPspsDb.insertPending(box_id, batchType, ids) -
trunk/ippToPsps/jython/stackbatch.py
r35605 r35656 728 728 729 729 # now update StackMeta with correct number of inputs 730 sql = "UPDATE StackMeta SET nP2Images = (SELECT COUNT( *) FROM StackToImage)"730 sql = "UPDATE StackMeta SET nP2Images = (SELECT COUNT(distinct(floor(imageID/100))) FROM StackToImage)" 731 731 self.scratchDb.execute(sql) 732 732
Note:
See TracChangeset
for help on using the changeset viewer.
