IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33352 for trunk/ippToPsps


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

new arg of scratch Db name for dvograbber program; now being passed ScratchDb rather than creating it

File:
1 edited

Legend:

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

    r33290 r33352  
    2121
    2222'''
    23 Base class of all batch types.
     23Abstract base class of all batch types.
    2424'''
    2525class Batch(object):
     
    3333                 gpc1Db,
    3434                 ippToPspsDb,
     35                 scratchDb,
    3536                 id,
    3637                 batchID,
     
    5556        self.gpc1Db = gpc1Db
    5657        self.ippToPspsDb = ippToPspsDb
     58        self.scratchDb = scratchDb
    5759        self.batchType = batchType;
    5860        self.pspsVoTableFilePath = "../config/" + batchType + "/tables.vot"
     
    7375               return
    7476
    75         self.scratchDb = ScratchDb(logger, self.config, self.useFullTables)
    76 
    77         if not self.scratchDb.everythingOK: return
     77        self.scratchDb.setUseFullTables(self.useFullTables)
    7878
    7979        # TODO
     
    488488
    489489        # TODO path to DVO prog hardcoded temporarily
    490         cmd = "../src/dvograbber " + self.config.path + " " + self.config.dvoLocation
     490        cmd = "../src/dvograbber " + self.config.settingsPath + " " + self.scratchDb.dbName + " " + self.config.dvoLocation
    491491        self.logger.infoPair("Running DVO", cmd)
    492492        p = Popen(cmd, shell=True, stdout=PIPE)
     
    534534                        Batch.publishToDatastore(self.datastore, self.batchID, self.batchName, self.subDir, tarballFile)
    535535
    536                 if self.config.reportNulls: self.reportNullsInAllPspsTables(False)
    537 
    538536from datastore import Datastore
    539537
Note: See TracChangeset for help on using the changeset viewer.