IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2013, 5:58:25 AM (13 years ago)
Author:
eugene
Message:

enable test mode from command-line (-test, after jython module); add parallel dvo option; make database selection more consistent and variable on test/not-test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/dvo.py

    r35042 r35063  
    3333
    3434    '''
    35     def __init__(self, logger, config, scratchDbName="ipptopsps_test_scratch"):
     35    def __init__(self, logger, config, scratchDbName=None):
    3636
    3737        # set up logging
     
    4949        self.useStilts = 0
    5050
    51         # connect to the specified scratch database
     51        # connect to the specified scratch database, if a name is given, otherwise use the first version
    5252        try:
    53             self.scratchDb = ScratchDb(self.logger, self.config, scratchDbName)
     53            self.scratchDb = ScratchDb(self.logger, self.config, '1', scratchDbName)
    5454        except: raise
    5555
     
    617617        cmd += " " + str(decCenter+halfSize)
    618618
     619        if self.config.parallel:
     620            cmd += " -parallel"
     621
    619622        self.logger.infoPair("Running dvopsps", cmd)
    620623        p = Popen(cmd, shell=True, stdout=PIPE)
Note: See TracChangeset for help on using the changeset viewer.