:class:`~.SamplesToLoad` ================================================================================================================================================= .. py:class:: astropathdb.db_io._sample_utils.SamplesToLoad(sdata, sampleids, element_id, input_kwargs) :single-line-parameter-list: A dataclass that can be used to determine which samples to load. Loads samples based on input kwargs and sampleids passed to the constructor. :param sdata: The spatial data object. :param sampleids: A list of sample IDs to load. :param element_id: The element ID to query. :param input_kwargs: A dictionary of input kwargs for the element query. :class:`~.astropathdb.db_io._sample_utils.SamplesToLoad` *Attributes* ------------------------------------------------------------------------------------------------------------------------------------------------- .. autoapisummary:: :signatures: none astropathdb.db_io._sample_utils.SamplesToLoad.sdata astropathdb.db_io._sample_utils.SamplesToLoad.sampleids astropathdb.db_io._sample_utils.SamplesToLoad.element_id :class:`~.astropathdb.db_io._sample_utils.SamplesToLoad` *Properties* ------------------------------------------------------------------------------------------------------------------------------------------------- .. autoapisummary:: :signatures: none astropathdb.db_io._sample_utils.SamplesToLoad.input_kwargs astropathdb.db_io._sample_utils.SamplesToLoad.has_samples astropathdb.db_io._sample_utils.SamplesToLoad.results_key :class:`~.astropathdb.db_io._sample_utils.SamplesToLoad` *References* ------------------------------------------------------------------------------------------------------------------------------------------------- .. py:currentmodule:: astropathdb.db_io._sample_utils.SamplesToLoad *Attribute Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:attribute:: sdata :type: dataclasses.InitVar[spatialdata.SpatialData] .. py:attribute:: sampleids :type: str | int | list[str | int] .. py:attribute:: element_id :type: str *Property Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:property:: input_kwargs :type: collections.abc.Mapping[str, Any] 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. .. py:property:: has_samples :type: bool Check if there are samples to load. .. py:property:: results_key :type: str Returns the results key for the element query. *Private Attribute Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:attribute:: __input_kwargs :type: collections.abc.Mapping[str, Any]