IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2011, 3:16:31 PM (15 years ago)
Author:
rhenders
Message:

temporarily not copying FITS files to local filesystem as there is danger with multiple clients

File:
1 edited

Legend:

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

    r32207 r32455  
    3131       # ok, we have a file, now copy it locally to save on NFS overhead
    3232       self.logger.debugPair("FITS file", self.originalPath)
    33        self.localCopyPath = self.localDir + "/temp.fits"
    34        shutil.copy2(self.originalPath, self.localCopyPath)
     33       #self.localCopyPath = self.localDir + "/temp.fits"
     34       #shutil.copy2(self.originalPath, self.localCopyPath)
    3535
    3636       # open the local copy and parse the ridiculou plain-text header
    37        self.file = open(self.localCopyPath)
     37       #self.file = open(self.localCopyPath)
     38       self.file = open(self.originalPath)
    3839       self.header = self.parseHeader()
    39        self.logger.debugPair("FITS local copy", self.localCopyPath)
     40       #self.logger.debugPair("FITS local copy", self.localCopyPath)
    4041       self.logger.debugPair("FITS primary header", "%d cards found" % len(self.header))
    4142
     
    5354    '''
    5455    def getPath(self):
    55         return self.localCopyPath
     56        #return self.localCopyPath
     57        return self.originalPath
    5658
    5759    '''
Note: See TracChangeset for help on using the changeset viewer.