pyccapt.control.core package
Submodules
pyccapt.control.core.baking_loging module
pyccapt.control.core.com_ports module
pyccapt.control.core.control_data_tool module
- pyccapt.control.core.control_data_tool.concatenate_datasets(hdf5_file_path_1, hdf_file_path_2, index_2)[source]
Concatenate datasets in nested HDF5 groups.
- pyccapt.control.core.control_data_tool.copy_npy_to_hdf_surface_concept(path, hdf5_file_name)[source]
copy npy data to hdf5 file for surface concept TDC
- Parameters:
path – path to the npy files
hdf5_file_name – name of the hdf5 file
- Returns:
None
- pyccapt.control.core.control_data_tool.correct_surface_concept_old_data(hdf5_file_path)[source]
correct surface concept old data
- Parameters:
hdf5_file_path – path to the hdf5 file
- Returns:
None
- pyccapt.control.core.control_data_tool.crop_dataset_to_new_file(original_path, new_path, num_of_samples)[source]
Crop dataset and save to a new file.
- Parameters:
original_path – Path to the original dataset.
new_path – Path to save the cropped dataset.
num_of_samples – Number of samples to keep.
- Returns:
None
pyccapt.control.core.experiment_statistics module
pyccapt.control.core.hdf5_creator module
pyccapt.control.core.loggi module
- pyccapt.control.core.loggi.logger_creator(script_name, variables, log_name, path)[source]
Create and configure a logger object for logging.
This function uses the native Python logging library to create a logger object that can be used to log statements of different levels.
- Parameters:
- Returns:
The configured logger object.
- Return type:
pyccapt.control.core.read_files module
File-loading helpers for the control package.
- pyccapt.control.core.read_files.load_config_file(config_file_path: str | Path) dict[str, Any][source]
Load a control configuration file from .toml.
- Parameters:
config_file_path – Absolute or relative path to the config file.
- Returns:
Parsed config dictionary.
- Raises:
ValueError – If file extension is unsupported.
- pyccapt.control.core.read_files.normalize_control_config(config: dict[str, Any]) dict[str, Any][source]
Normalize supported control config toggle aliases to legacy values.
- pyccapt.control.core.read_files.read_json_file(json_file_path: str | Path) dict[str, Any][source]
Read a JSON file and return its content as a dictionary.
- Parameters:
json_file_path – Absolute or relative path to the JSON file.
- Returns:
Parsed JSON content.
- Raises:
FileNotFoundError – If the file does not exist.
ValueError – If the file does not contain a JSON object.
json.JSONDecodeError – If the file content is invalid JSON.
- pyccapt.control.core.read_files.read_toml_file(toml_file_path: str | Path) dict[str, Any][source]
Read a TOML file and return its content as a dictionary.
- Parameters:
toml_file_path – Absolute or relative path to the TOML file.
- Returns:
Parsed TOML content.
- Raises:
FileNotFoundError – If the file does not exist.
ValueError – If the file does not contain a TOML object.
tomllib.TOMLDecodeError – If the file content is invalid TOML.