instance¶
- class Instance(cfg=None, from_scalars=False, **kwargs)¶
Bases:
ConfiguredDataRepresents an instance of configured data, handling data initialization and access.
Implements the
__getitem__and__setitem__methods to provide dictionary-like access to the data.- Parameters:
- Raises:
ValueError – If a required key is missing.
ValueError – If a value is not a numpy array when
from_scalars=False.ValueError – If a value does not have at least one dimension, or if a value does not own its data.
KeyError – If a key in
kwargsis not a defined key.