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, show_progress=True)[source]
Load a PyCCAPT
.h5(or LEAP.RHIT) file for raw-data analysis.Three file layouts are supported, dispatched by file extension:
Calibrated PyCCAPT bundle (
.h5, preferred) — produced bydata_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 PyCCAPT acquisition (
.h5) — 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.LEAP CAMECA RHIT (
.rhit) — a Cameca-LEAP ROOT bundle. Decoded viapyccapt.calibration.leap_tools.cameca_raw.rhit_load()and converted to the processed dataframe schema withrhit_to_ccapt(). RHIT files have no raw delay-line tdc data (the mass/charge and detector positions are already calibrated by the instrument), sovariables.data_tdcis set toNoneand the downstream analyses that require/tdc(DLTS-per-pulse, combinatorial recovery) are skipped automatically.
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.