IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33531


Ignore:
Timestamp:
Mar 15, 2012, 11:48:34 AM (14 years ago)
Author:
rhenders
Message:

now loading skytable whenever we have reset the database

File:
1 edited

Legend:

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

    r33495 r33531  
    7474                    self.resetAllTables()
    7575
    76 
    7776    '''
    7877    Destructor
     
    9392
    9493        self.logger.infoPair("Resetting", "all tables")
    95         if not self.scratchDb.resetAllDvoTables(): return False
     94        if not self.scratchDb.resetAllDvoTables(): return
    9695        self.correctDvo = True
     96        if not self.loadSkyTable():
     97            self.correctDvo = False
     98            return
     99
    97100
    98101    '''
     
    158161       
    159162        # go no further if we've already partly ingested a different DVO
    160         if not self.correctDvo: return
     163        if not self.correctDvo: return False
    161164
    162165        path =  self.config.dvoLocation + "/SkyTable.fits"
    163166        if self.scratchDb.alreadyImportedThisDvoTable(path):
    164167            self.logger.debugPair("DVO SkyTable.fits file", "up-to-date")       
    165             return
     168            return False
    166169
    167170        self.logger.infoSeparator()
     
    178181        self.scratchDb.setImportedThisDvoTable(path)
    179182        self.logger.infoPair("Finished importing SkyTable at", self.config.dvoLocation)
     183
     184        return True
    180185
    181186    '''
Note: See TracChangeset for help on using the changeset viewer.