IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2012, 1:40:18 PM (14 years ago)
Author:
rhenders
Message:

got rid of dvoMeta table - now only use dvoImages table; whether we use DVO on-the-fly or already ingested data is passed as a boolean into the constructor

File:
1 edited

Legend:

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

    r32824 r33235  
    2727    '''
    2828    Constructor
    29 
    30     >>> batch = Batch(1,2,3,4,5,6,7)
    31     >>> print batch.pspsVoTableFilePath
    32     "../config/2/tables.vot"
    3329    '''
    3430    def __init__(self,
     
    4137                 batchID,
    4238                 batchType,
    43                  fits):
     39                 fits,
     40                 useFullTables):
    4441
    4542        self.everythingOK = False
     
    4845        self.doc = doc
    4946        self.fits = fits
     47        self.useFullTables = useFullTables
    5048
    5149        # set up logging
     
    8280        self.dvoGpc1Label = self.doc.find("dvo/gpc1Label").text
    8381        self.dvoLocation = self.doc.find("dvo/location").text
    84         self.useFullTables = int(self.doc.find("dvo/useFullTables").text)
    8582        self.scratchDb = ScratchDb(logger, self.doc, self.useFullTables)
    8683
     
    496493    def getIDsFromDVO(self):
    497494
    498         if self.scratchDb.getRowCount("dvoMeta") < 1:
    499             self.logger.error("No DVO IDs found in dvoMeta")
     495        if self.scratchDb.getRowCount(self.scratchDb.dvoImagesTable) < 1:
     496            self.logger.errorInfo("No DVO images found in", self.scratchDb.dvoImagesTable)
    500497            return False
    501498
Note: See TracChangeset for help on using the changeset viewer.