SamplesToLoad#
- class astropathdb.db_io._sample_utils.SamplesToLoad(sdata, sampleids, element_id, input_kwargs)#
A dataclass that can be used to determine which samples to load.
Loads samples based on input kwargs and sampleids passed to the constructor.
SamplesToLoad Attributes#
SamplesToLoad Properties#
Holds the input kwargs for the element query. |
|
Check if there are samples to load. |
|
Returns the results key for the element query. |
SamplesToLoad References#
Attribute Reference#
- attribute sdata: InitVar[SpatialData]#
Property Reference#
- property input_kwargs#
-
Holds the input kwargs for the element query.
If the input_kwargs is a bool or str, it will be converted to an empty dict. If it is a Mapping, it will be returned as a dict. If it is not one of these types, a TypeError will be raised.