IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2015, 8:29:33 PM (11 years ago)
Author:
eugene
Message:

add -stilts option; fix stilts and regex for detectionbatch; add tableprefix option for stacks; alter photcode.type to type_as_int

File:
1 edited

Legend:

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

    r38990 r38995  
    809809    Use Ohana fits_to_mysql to load FITS tables into scratch db
    810810    '''
    811     def loadFITStoMYSQL(self, filename, tablename):
     811    def loadFITStoMYSQL(self, filename, tablename=""):
    812812
    813813        self.logger.infoPair("starting loadFITStoMYSQL: ", filename)
     
    819819        cmd += " -dbuser " + self.dbUser
    820820        cmd += " -dbpass " + self.dbPass
     821        cmd += " " + tablename
    821822
    822823        self.logger.debugPair("preparing command: ", cmd)
    823 
    824         if tablename != "none":
    825             cmd += " -tablename " + tablename
    826824
    827825        (stdoutFile, stdoutName) = tempfile.mkstemp(prefix="fits_to_mysql.stdout.", dir="/tmp")
Note: See TracChangeset for help on using the changeset viewer.