ToltecHwpConfig

class tolteca.simu.toltec.ToltecHwpConfig(f_rot: astropy.units.quantity.Quantity = <Quantity 4. Hz>, f_smp: astropy.units.quantity.Quantity = <Quantity 20. Hz>, rotator_enabled: bool = False)[source]

Bases: object

The config class for TolTEC half-wave plate and the rotator.

Attributes Summary

f_rot

f_smp

optional

rotator_enabled

schema

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 from data after validation.

to_dict(*[, dict_factory])

Attributes Documentation

f_rot: astropy.units.quantity.Quantity = <Quantity 4. Hz>
f_smp: astropy.units.quantity.Quantity = <Quantity 20. Hz>
optional = functools.partial(<class 'tollan.utils.dataclass_schema.DataclassSchemaOptional'>, dataclass_cls=<class 'tolteca.simu.toltec.simulator.ToltecHwpConfig'>)
rotator_enabled: bool = False
schema = DataclassSchema({DataclassSchemaOptional('f_rot'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('f_smp'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('rotator_enabled'): <class 'bool'>})

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 from data after validation.

to_dict(*, dict_factory=<class 'dict'>)