nicetoolbox.evaluation.data.input_loader.get_meta_type¶
- nicetoolbox.evaluation.data.input_loader.get_meta_type(arrays: list[nicetoolbox.evaluation.data.input_loader.LoadedArray]) type[nicetoolbox.evaluation.data.input_loader.NpzMeta][source]¶
Extract the shared NpzMeta type from a list of arrays.
- Parameters:
arrays – Non-empty list of LoadedArray instances all sharing the same meta type.
- Returns:
The common NpzMeta subclass used by all arrays in the list.
- Raises:
ValueError – If arrays is empty or contains mixed meta types.