CitlaliConfig¶
- class tolteca.reduce.engines.CitlaliConfig(low_level: typing.Union[None, pathlib.Path, dict] = None, image_frame_params: tolteca.reduce.engines.citlali.ImageFrameParams = <factory>)[source]¶
Bases:
object
The high-level config for Citlali.
Attributes Summary
Methods Summary
default_factory
(default_value)Return a callable suitable to be used as default_factory.
from_dict
(data)Return the instance of
dataclass_cls
created fromdata
after validation.to_dict
(*[, dict_factory])Attributes Documentation
- low_level: Union[None, pathlib.Path, dict] = None¶
- optional = functools.partial(<class 'tollan.utils.dataclass_schema.DataclassSchemaOptional'>, dataclass_cls=<class 'tolteca.reduce.engines.citlali.CitlaliConfig'>)¶
- schema = DataclassSchema({DataclassSchemaOptional('low_level'): Or(RelPathSchema(<class 'str'>), <class 'dict'>), DataclassSchemaOptional('image_frame_params'): DataclassSchema({DataclassSchemaOptional('pixel_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))})})¶
Methods Documentation
- default_factory(default_value)¶
Return a callable suitable to be used as default_factory.
By default this is to create instance, so that when used as field default factory, no argument is required.
- from_dict(data)¶
Return the instance of
dataclass_cls
created fromdata
after validation.
- to_dict(*, dict_factory=<class 'dict'>)¶