IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2013, 1:31:54 PM (13 years ago)
Author:
eugene
Message:

instead of creating a new connection to the scratch db for each new object, pass the scratchdb connection down to dvo.py

File:
1 edited

Legend:

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

    r35217 r35223  
    3434
    3535    '''
    36     def __init__(self, logger, config, skychunk, ippToPspsDb, scratchDbName=None):
     36    def __init__(self, logger, config, skychunk, ippToPspsDb, scratchDb):
    3737
    3838        # set up logging
     
    4141        self.skychunk = skychunk
    4242        self.ippToPspsDb = ippToPspsDb
     43        self.scratchDb = scratchDb
    4344
    4445        # set up empty lists
     
    4950        self.regionsIngestedButOutOfDate = []
    5051       
    51         # connect to the specified scratch database, if a name is given, otherwise use the first version
    52         try:
    53             self.scratchDb = ScratchDb(self.logger, self.config)
    54         except: raise
    55 
    5652        # we have (still) 3 modes of ingest from dvo cpt/cps/cpm files
    5753        # 1) dvograbber (useFullTables == FALSE),
Note: See TracChangeset for help on using the changeset viewer.