Changeset 13512 for fact


Ignore:
Timestamp:
05/02/12 13:39:38 (13 years ago)
Author:
neise
Message:
using now class FactFits instead of class fits
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/pyfact.py

    r13505 r13512  
    1111# get the ROOT stuff + my shared libs
    1212from ROOT import gSystem
    13 # pyfits_h.so is made from pyfits.h and is used to access the data
    14 # make sure the location of pyfits_h.so is in LD_LIBRARY_PATH.
     13# factfits_h.so is made from factfits.h and is used to access the data
     14# make sure the location of factfits_h.so is in LD_LIBRARY_PATH.
    1515# having it in PYTHONPATH is *not* sufficient
    16 gSystem.Load('pyfits_h.so')
     16gSystem.Load('factfits_h.so')
    1717from ROOT import *
    1818
     
    127127        # access data file
    128128        try:
    129             data_file = fits(self.data_file_name)
     129            data_file = FactFits(self.data_file_name)
    130130        except IOError:
    131131            print 'problem accessing data file: ', data_file_name
     
    161161        # open the calibration file
    162162        try:
    163             calib_file = fits(self.calib_file_name)
     163            calib_file = FactFits(self.calib_file_name)
    164164        except IOError:
    165165            print 'problem accessing calibration file: ', calib_file_name
     
    382382# -----------------------------------------------------------------------------
    383383
    384 class SlowData( fits ):
    385     """ -Fact Fits File-
     384class SlowData( FactFits ):
     385    """ -Fact SlowData File-
    386386        A Python wrapper for the fits-class implemented in pyfits.h
    387387        provides easy access to the fits file meta data.
     
    395395        self.path = path
    396396        try:
    397             fits.__init__(self,path)
     397            FactFits.__init__(self,path)
    398398        except IOError:
    399399            print 'problem accessing data file: ', data_file_name
Note: See TracChangeset for help on using the changeset viewer.