IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2013, 4:13:09 PM (14 years ago)
Author:
eugene
Message:

split out config (static info) and skychunk (area being processed)

File:
1 edited

Legend:

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

    r35063 r35076  
    1212from dvo import Dvo
    1313
    14 
    1514'''
    1615A class for ingesting DVO detections into MySQL
     
    2120    Constructor
    2221    '''
    23     def __init__(self, logger, config, scratchDbName=None):
     22    def __init__(self, logger, config, skychunk, scratchDbName=None):
    2423
    25         super(DvoObjects, self).__init__(logger, config, scratchDbName)
     24        super(DvoObjects, self).__init__(logger, config, skychunk, scratchDbName)
    2625
    2726        # declare DVO file types of interest
     
    3837       for fileType in self.ingestFileTypes:
    3938
    40            path = self.config.dvoLocation + "/" + region + "." + fileType
     39           path = self.skychunk.dvoLocation + "/" + region + "." + fileType
    4140           tableName = self.scratchDb.getDbFriendlyTableName(region + "." + fileType)
    4241
     
    6463        cmd += " -dbuser " + self.scratchDb.dbUser
    6564        cmd += " -dbpass " + self.scratchDb.dbPass
    66         cmd += " -D CATDIR " + self.config.dvoLocation
     65        cmd += " -D CATDIR " + self.skychunk.dvoLocation
    6766        cmd += " -cpt " + region
    6867
    69         if self.config.parallel:
     68        if self.skychunk.parallel:
    7069            cmd += " -parallel"
    7170
Note: See TracChangeset for help on using the changeset viewer.