Changeset 13512
- Timestamp:
- 05/02/12 13:39:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/pyfact.py
r13505 r13512 11 11 # get the ROOT stuff + my shared libs 12 12 from ROOT import gSystem 13 # pyfits_h.so is made from pyfits.h and is used to access the data14 # 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. 15 15 # having it in PYTHONPATH is *not* sufficient 16 gSystem.Load(' pyfits_h.so')16 gSystem.Load('factfits_h.so') 17 17 from ROOT import * 18 18 … … 127 127 # access data file 128 128 try: 129 data_file = fits(self.data_file_name)129 data_file = FactFits(self.data_file_name) 130 130 except IOError: 131 131 print 'problem accessing data file: ', data_file_name … … 161 161 # open the calibration file 162 162 try: 163 calib_file = fits(self.calib_file_name)163 calib_file = FactFits(self.calib_file_name) 164 164 except IOError: 165 165 print 'problem accessing calibration file: ', calib_file_name … … 382 382 # ----------------------------------------------------------------------------- 383 383 384 class SlowData( fits ):385 """ -Fact FitsFile-384 class SlowData( FactFits ): 385 """ -Fact SlowData File- 386 386 A Python wrapper for the fits-class implemented in pyfits.h 387 387 provides easy access to the fits file meta data. … … 395 395 self.path = path 396 396 try: 397 fits.__init__(self,path)397 FactFits.__init__(self,path) 398 398 except IOError: 399 399 print 'problem accessing data file: ', data_file_name
Note:
See TracChangeset
for help on using the changeset viewer.