IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33356


Ignore:
Timestamp:
Feb 23, 2012, 4:18:14 PM (14 years ago)
Author:
rhenders
Message:

changing some log messges to debug level; new method to set scratch Db name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/dvo.py

    r33339 r33356  
    4040        self.config = config
    4141
    42         # create database object
    43         self.scratchDb = ScratchDb(logger, self.config, 1)
    44 
    45         # or decide if we are using the right DVO
    46         self.correctDvo = self.scratchDb.isCorrectDvo(self.config.dvoLocation)
    47 
    4842        # set up empty lists
    4943        self.regionsToIngest = []
     
    5246        self.regionsAlreadyIngested = []
    5347        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 
    5563        if not self.correctDvo:
    5664            print "*******************************************************************************"
     
    6169                    self.resetAllTables()
    6270
     71
    6372    '''
    6473    Destructor
     
    101110        path = self.config.dvoLocation + "/Images.dat"
    102111        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")
    104113            return
    105114       
     
    156165        path =  self.config.dvoLocation + "/SkyTable.fits"
    157166        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")       
    159168            return
    160169
Note: See TracChangeset for help on using the changeset viewer.