Changeset 13374 for fact/tools/pyscripts


Ignore:
Timestamp:
04/18/12 09:17:59 (13 years ago)
Author:
neise
Message:
adjusted _test_iter for dict return value of RawData.next()
File:
1 edited

Legend:

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

    r13356 r13374  
    382382#    data_file_name =  '/home/luster/win7/FACT/data/raw/20120114/20120114_028.fits.gz'
    383383#    calib_file_name = '/home/luster/win7/FACT/data/raw/20120114/20120114_022.drs.fits.gz'
    384     run = RawData( data_file_name, calib_file_name )
    385 
    386     for data, scell, tt in run:
    387         print 'ev ', run.event_id.value, 'data[0,0] = ', data[0,0], 'start_cell[0] = ', scell[0], 'trigger type = ', tt
     384    run = RawData( data_file_name, calib_file_name , return_dict=True)
     385
     386    for event in run:
     387        print 'ev ', event['event_id'], 'data[0,0] = ', event['acal_data'][0,0], 'start_cell[0] = ', event['start_cell'][0], 'trigger type = ', event['trigger_type']
    388388        if run.event_id.value == nevents:
    389389            break
Note: See TracChangeset for help on using the changeset viewer.