Changeset 33356
- Timestamp:
- Feb 23, 2012, 4:18:14 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r33339 r33356 40 40 self.config = config 41 41 42 # create database object43 self.scratchDb = ScratchDb(logger, self.config, 1)44 45 # or decide if we are using the right DVO46 self.correctDvo = self.scratchDb.isCorrectDvo(self.config.dvoLocation)47 48 42 # set up empty lists 49 43 self.regionsToIngest = [] … … 52 46 self.regionsAlreadyIngested = [] 53 47 self.regionsIngestedButOutOfDate = [] 54 48 49 #self.correctDvo = False 50 51 52 ''' 53 Sets to scratch database 54 ''' 55 def setScratchDb(self, dbName): 56 57 self.scratchDb = ScratchDb(self.logger, self.config, dbName) 58 self.scratchDb.setUseFullTables(True) 59 60 # or decide if we are using the right DVO 61 self.correctDvo = self.scratchDb.isCorrectDvo(self.config.dvoLocation) 62 55 63 if not self.correctDvo: 56 64 print "*******************************************************************************" … … 61 69 self.resetAllTables() 62 70 71 63 72 ''' 64 73 Destructor … … 101 110 path = self.config.dvoLocation + "/Images.dat" 102 111 if self.scratchDb.alreadyImportedThisDvoTable(path): 103 self.logger. infoPair("DVO Images.dat file", "up-to-date")112 self.logger.debugPair("DVO Images.dat file", "up-to-date") 104 113 return 105 114 … … 156 165 path = self.config.dvoLocation + "/SkyTable.fits" 157 166 if self.scratchDb.alreadyImportedThisDvoTable(path): 158 self.logger. infoPair("DVO SkyTable.fits file", "up-to-date")167 self.logger.debugPair("DVO SkyTable.fits file", "up-to-date") 159 168 return 160 169
Note:
See TracChangeset
for help on using the changeset viewer.
