ctf4science.data_module.parse_pair_ids#

ctf4science.data_module.parse_pair_ids(dataset_config: dict[str, Any]) list[int]#

Parse the pair_id configuration to determine which sub-datasets to process.

Resolves dataset_config to a list of pair IDs. Supports a single integer, a list of integers, a range string (e.g. "1-3"), or "all".

Parameters:
dataset_configdict

The dataset section from the config file. Must contain name; may contain pair_id (int, list of int, range string, or "all").

Returns:
list of int

Pair IDs to process for the dataset.

Raises:
ValueError

If name is missing, pair_id is invalid, or requested pair_ids are not in the dataset configuration.