nicetoolbox.evaluation.data.input_loader.load_input

nicetoolbox.evaluation.data.input_loader.load_input(input_block: BaseInputBlock) list[nicetoolbox.evaluation.data.input_loader.LoadedArray][source]

Load and prepare all arrays for a given input block.

Resolves the relevant NPZ files based on the input block’s source type (experiment/annotation/path), loads each one, and applies axis filters (subjects, cameras, labels, etc.).

Parameters:

input_block – Configuration describing what data to load and how to filter it.

Returns:

List of loaded arrays ready for metric iteration, sorted by source NPZ file.

Raises:
  • RuntimeError – If all resolved NPZ files are filtered out or no data is found.

  • FileNotFoundError – If a resolved NPZ path does not exist on disk.