pyccapt.calibration.tutorials.tutorials_helpers package
Submodules
pyccapt.calibration.tutorials.tutorials_helpers.helper_3d_reconstruction module
pyccapt.calibration.tutorials.tutorials_helpers.helper_calibration module
pyccapt.calibration.tutorials.tutorials_helpers.helper_data_loader module
- pyccapt.calibration.tutorials.tutorials_helpers.helper_data_loader.add_columns(variables, max_mc)[source]
- pyccapt.calibration.tutorials.tutorials_helpers.helper_data_loader.load_calibrated_h5(dataset_path, variables, *, range_path=None)[source]
Load a PyCCAPT
.h5file for raw-data analysis.Two file layouts are supported:
Calibrated bundle (preferred) — produced by
data_tools.save_data(..., save_tdc=True, save_range=True). Contains/df(calibrated dld), and optionally/tdc(raw delay-line timestamps linked viaevent_group_id) and/range(identified ion windows).Pure raw acquisition — the file as written by the control software:
/dldand/tdcgroups (no/df, no/range). The dld records are converted to the processed dataframe schema in memory, and the linked raw tdc rows are kept onvariables.data_tdc.
Older datasets that store the range table in a separate
<dataset>_range.h5file are also supported viarange_path.Populates
variables.data,variables.data_tdc,variables.range_data, and the standard backup fields.
- pyccapt.calibration.tutorials.tutorials_helpers.helper_data_loader.load_data(dataset_path, max_mc, flightPathLength, pulse_mode, tdc, variables, processing_mode=True, load_tdc_raw=False)[source]
Load a calibration dataset and stash it on
variables.- Parameters:
load_tdc_raw (bool, default False) – If True and
tdc == 'pyccapt', also load the raw/tdcgroup from the h5 file. The dld and tdc dataframes are linked via a sharedevent_group_idcolumn so dld filtering decisions can later be propagated to tdc at save time. Stored onvariables.data_tdc.
pyccapt.calibration.tutorials.tutorials_helpers.helper_ion_list module
pyccapt.calibration.tutorials.tutorials_helpers.helper_ion_selection module
pyccapt.calibration.tutorials.tutorials_helpers.helper_mc_plot module
pyccapt.calibration.tutorials.tutorials_helpers.helper_special_crop module
- pyccapt.calibration.tutorials.tutorials_helpers.helper_special_crop.apply_crop(variables, out, use_manual_values, center_x_widget, center_y_widget, radius_widget)[source]
pyccapt.calibration.tutorials.tutorials_helpers.helper_t_0_tune module
pyccapt.calibration.tutorials.tutorials_helpers.helper_temporal_crop module
- pyccapt.calibration.tutorials.tutorials_helpers.helper_temporal_crop.apply_crop(variables, out, use_manual_values, start_widget, end_widget)[source]
pyccapt.calibration.tutorials.tutorials_helpers.helper_visualization module
Module contents
Shared helper functions used by calibration tutorial notebooks.