Changeset 13024


Ignore:
Timestamp:
03/09/12 10:08:32 (13 years ago)
Author:
neise
Message:
added checking for input files, before using them :-)
Location:
fact/tools/pyscripts/tools/trigger_studies
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/tools/trigger_studies/ftu_comparator_out.py

    r13023 r13024  
    1717data_file_name = '/media/daten_platte/FACT/data/20120305_022.fits.gz'
    1818calib_file_name = '/media/daten_platte/FACT/data/20120305_005.drs.fits.gz'
     19if not os.path.isfile(data_file_name):
     20    print 'not able to find file:', data_file_name
     21    sys.exit(-1)
     22if not os.path.isfile(calib_file_name ):
     23    print 'not able to find file:', calib_file_name
     24    sys.exit(-1)
     25   
    1926run = RawData(data_file_name, calib_file_name)
    2027despike = DRSSpikes()
  • fact/tools/pyscripts/tools/trigger_studies/ftu_patch_signal.py

    r13023 r13024  
    1515data_file_name = '/media/daten_platte/FACT/data/20120305_022.fits.gz'
    1616calib_file_name = '/media/daten_platte/FACT/data/20120305_005.drs.fits.gz'
     17if not os.path.isfile(data_file_name):
     18    print 'not able to find file:', data_file_name
     19    sys.exit(-1)
     20if not os.path.isfile(calib_file_name ):
     21    print 'not able to find file:', calib_file_name
     22    sys.exit(-1)
     23
    1724run = RawData(data_file_name, calib_file_name)
    1825despike = DRSSpikes()
Note: See TracChangeset for help on using the changeset viewer.