- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippToPsps/jython/fits.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippToPsps/jython/fits.py
r32036 r33415 15 15 16 16 ''' 17 def __init__(self, logger, doc, originalPath):17 def __init__(self, logger, config, originalPath): 18 18 19 19 # set class variables 20 20 self.originalPath = originalPath 21 21 self.logger = logger 22 self. doc = doc23 self. localDir = self.doc.find("localOutPath").text22 self.config = config 23 self.header = None 24 24 25 25 # does this file even exist? … … 30 30 # ok, we have a file, now copy it locally to save on NFS overhead 31 31 self.logger.debugPair("FITS file", self.originalPath) 32 self.localCopyPath = self.localDir+ "/temp.fits"33 shutil.copy2(self.originalPath, self.localCopyPath)32 #self.localCopyPath = self.config.basePath + "/temp.fits" 33 #shutil.copy2(self.originalPath, self.localCopyPath) 34 34 35 35 # open the local copy and parse the ridiculou plain-text header 36 self.file = open(self.localCopyPath) 36 #self.file = open(self.localCopyPath) 37 self.file = open(self.originalPath) 37 38 self.header = self.parseHeader() 38 self.logger.debugPair("FITS local copy", self.localCopyPath)39 #self.logger.debugPair("FITS local copy", self.localCopyPath) 39 40 self.logger.debugPair("FITS primary header", "%d cards found" % len(self.header)) 40 41 … … 52 53 ''' 53 54 def getPath(self): 54 return self.localCopyPath 55 #return self.localCopyPath 56 return self.originalPath 55 57 56 58 '''
Note:
See TracChangeset
for help on using the changeset viewer.
