IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 3, 2011, 12:37:58 PM (15 years ago)
Author:
rhenders
Message:

now taking config path into constructor and using it to run dvograbber program

File:
1 edited

Legend:

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

    r31985 r32001  
    3535    def __init__(self,
    3636                 logger,
     37                 configPath,
    3738                 doc,
    3839                 gpc1Db,
     
    4546        self.everythingOK = False
    4647        self.readHeader = False
     48        self.configPath = configPath
    4749        self.doc = doc
    4850        self.fits = fits
     
    6567        # get dvo info from config
    6668        dvoName = self.doc.find("dvo/name").text
     69        dvoGpc1Label = self.doc.find("dvo/gpc1Label").text
    6770        self.dvoLocation = self.doc.find("dvo/location").text
    6871        self.useFullTables = int(self.doc.find("dvo/useFullTables").text)
     
    9093                self.id,
    9194                survey,
    92                 dvoName,
     95                dvoGpc1Label,
    9396                self.datastore.product)
    9497
     
    429432
    430433        # TODO path to DVO prog hardcoded temporarily
    431         cmd = "../src/dvograbber " + self.dvoLocation
     434        cmd = "../src/dvograbber " + self.configPath + " " + self.dvoLocation
    432435        self.logger.infoPair("Running DVO", cmd)
    433436        p = Popen(cmd, shell=True, stdout=PIPE)
Note: See TracChangeset for help on using the changeset viewer.