Changeset 34104 for trunk/ippToPsps
- Timestamp:
- Jun 28, 2012, 9:49:41 AM (14 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 4 edited
- 2 copied
-
. (modified) (1 prop)
-
doc (copied) (copied from branches/eam_branches/ipp-20120627/ippToPsps/doc )
-
doc/Photcodes.dat (copied) (copied from branches/eam_branches/ipp-20120627/ippToPsps/doc/Photcodes.dat )
-
jython/dvo.py (modified) (1 diff)
-
jython/objectbatch.py (modified) (1 diff)
-
jython/scratchdb.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps
- Property svn:mergeinfo set to
-
trunk/ippToPsps/jython/dvo.py
r33787 r34104 111 111 self.importFits( 112 112 path, 113 "CODE NAME ",113 "CODE NAME TYPE", 114 114 self.scratchDb.dvoPhotcodesTable) 115 115 self.logger.infoPair("Adding primary key to", self.scratchDb.dvoPhotcodesTable) -
trunk/ippToPsps/jython/objectbatch.py
r33787 r34104 105 105 106 106 # get a count of the available filters 107 filterCount = len(filters) 107 filterCount = self.scratchDb.getCountOfFiltersFromPhotcodesTable() 108 # filterCount = len(filters) 108 109 109 110 self.logger.infoPair("Available filters in Photcodes", filters) -
trunk/ippToPsps/jython/scratchdb.py
r33833 r34104 544 544 545 545 ''' 546 Gets a count of average filters (secfilt) in the DVO Photcodes table 547 ''' 548 def getCountOfFiltersFromPhotcodesTable(self): 549 550 # 2 is hardwired -- convert to an enum (should probably read Ohana/src/libdvo/include/dvo.h defines 551 sql = "SELECT count(TYPE) FROM " + self.dvoPhotcodesTable + " WHERE TYPE = 2" 552 553 filterCount = 0 554 try: 555 rs = self.executeQuery(sql) 556 row = 1 557 while (rs.next()): 558 filterCount = rs.getString(1) 559 rs.close() 560 except: 561 self.logger.errorPair("Could not get filter count", sql ) 562 563 return filterCount 564 565 ''' 546 566 Gets a list of filters ordered as thy are in the DVO Photcodes table, as this reflects the order they apper in the cps file 547 567 ''' 548 568 def getOrderedListOfFiltersFromPhotcodesTable(self, interestedFilters): 569 570 sql = "SELECT count(TYPE) FROM " + self.dvoPhotcodesTable + " WHERE TYPE = 'sec'" 549 571 550 572 sql = "SELECT NAME FROM " + self.dvoPhotcodesTable + " WHERE "
Note:
See TracChangeset
for help on using the changeset viewer.
