IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2010, 9:39:28 AM (16 years ago)
Author:
Serge CHASTEL
Message:

Unstable. Added logging (no tused yet. p2 is currently very slow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/psps_testing/testers/fits_file.py

    r29116 r29140  
    4040        FileManipulation.system('/bin/rm -rf %s' % FitsFileTester._TMPDIR)
    4141
    42     def __init__(self, fitsname, basename, tempDir, fitsType):
     42    def __init__(self, fitsname, basename, tempDir, fitsType,
     43                 psi_configuration = 'psi.web01_configuration'):
    4344        """
    4445        Creates an instance of a FitsFileTester
     
    5859        self.fitsType = fitsType
    5960        self.fitsFile = pyfits.open(self.filename)
     61        self.psi_configuration = psi_configuration
    6062
    6163    def __del__(self):
     
    9092        """
    9193        if self.fitsType == "P2":
    92             return P2FitsTester(self.fitsFile).test()
     94            return P2FitsTester(self.fitsFile, self.psi_configuration).test()
    9395        else:
    9496            raise Exception("Unsupported FITS type [%s]" % self.fitsType)
Note: See TracChangeset for help on using the changeset viewer.