def print_raw_data_file(input_file, start_index=<NUM_LIT:0>, limit=<NUM_LIT:200>, flavor='<STR_LIT>', select=None, tdc_trig_dist=False, trigger_data_mode=<NUM_LIT:0>, meta_data_v2=True):
with tb.open_file(input_file + '<STR_LIT>', mode="<STR_LIT:r>") as file_h5:<EOL><INDENT>if meta_data_v2:<EOL><INDENT>index_start = file_h5.root.meta_data.read(field='<STR_LIT>')<EOL>index_stop = file_h5.root.meta_data.read(field='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>index_start = file_h5.root.meta_data.read(field='<STR_LIT>')<EOL>index_stop = file_h5.root.meta_data.read(field='<STR_LIT>')<EOL><DEDENT>total_words = <NUM_LIT:0><EOL>for read_out_index, (index_start, index_stop) in enumerate(np.column_stack((index_start, index_stop))):<EOL><INDENT>if start_index < index_stop:<EOL><INDENT>print("<STR_LIT>" % (read_out_index, (index_stop - index_start), index_start, index_stop))<EOL>raw_data = file_h5.root.raw_data.read(index_start, index_stop)<EOL>total_words += print_raw_data(raw_data=raw_data, start_index=max(start_index - index_start, <NUM_LIT:0>), limit=limit - total_words, flavor=flavor, index_offset=index_start, select=select, tdc_trig_dist=tdc_trig_dist, trigger_data_mode=trigger_data_mode)<EOL>if limit and total_words >= limit:<EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Printing FEI4 data from raw data file for debugging.