Utils¶
- listmode.utils.delete_channel_data(data_path, base_name, cfg)[source]¶
Used to delete channel files after parsing. :param data_path: :param base_name: :param cfg: :return:
- listmode.utils.find_data_files(data_path, base_name, cfg, mode)[source]¶
Generate filenames (paths) of all the data produced by config. You can select either ‘event’ or ‘channel’ type names.
- Parameters
data_path –
base_name –
cfg –
mode –
- Returns
timing, energy, time and extras filenames as lists. For event data the first (and only) item in the list is the relevant filename. For channel data there is a single name for every channel. Extra names are given as a list of names, one per extra (for each channel as in other data).