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