IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2012, 12:02:48 PM (14 years ago)
Author:
rhenders
Message:

Big changes to support a new Config class that encapuslates the xml config file

File:
1 edited

Legend:

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

    r32455 r33259  
    1515
    1616    '''
    17     def __init__(self, logger, doc, originalPath):
     17    def __init__(self, logger, config, originalPath):
    1818
    1919       # set class variables
    2020       self.originalPath = originalPath
    2121       self.logger = logger
    22        self.doc = doc
     22       self.config = config
    2323       self.header = None
    24        self.localDir = self.doc.find("localOutPath").text
    2524
    2625       # does this file even exist?
     
    3130       # ok, we have a file, now copy it locally to save on NFS overhead
    3231       self.logger.debugPair("FITS file", self.originalPath)
    33        #self.localCopyPath = self.localDir + "/temp.fits"
     32       #self.localCopyPath = self.config.basePath + "/temp.fits"
    3433       #shutil.copy2(self.originalPath, self.localCopyPath)
    3534
Note: See TracChangeset for help on using the changeset viewer.