Skip to content

utils

tergite_autocalibration.tools.browser.utils

Functions:

Name Description
collect_valid_chains

A valid chain is a folder that contains (measurement) folders

date_data_folders

Given the DATA_DIR collect all the date folders matching the "%Y-%m-%d" format

folders_containing_pngs

Given an intermediate folder (calibration chain folder)

scan_folders

scan the whole data directory for valid measurements, i.e.

collect_valid_chains

collect_valid_chains(outer_path, filter_text: str = '') -> dict

A valid chain is a folder that contains (measurement) folders each having at least one png image

date_data_folders

date_data_folders(data_directory: Path)

Given the DATA_DIR collect all the date folders matching the "%Y-%m-%d" format

folders_containing_pngs

folders_containing_pngs(inter_path: Path) -> list

Given an intermediate folder (calibration chain folder) scan whether the inner folders (folders of node measurements) contain png images

scan_folders

scan_folders(data_directory: Path, filter_text='') -> dict[str, dict]

scan the whole data directory for valid measurements, i.e. measurements that have produced png images