SimuConfig¶
- class tolteca.simu.SimuConfig(jobkey: str, instrument: dict, mapping: dict, obs_params: tolteca.simu.ObsParamsConfig, sources: list = <factory>, perf_params: tolteca.simu.PerfParamsConfig = <factory>, plots: list = <factory>, exports: list = <factory>, plot_only: bool = False, export_only: bool = False, output_context: dict = <factory>)[source]¶
Bases:
object
The config for
tolteca.simu
.Attributes Summary
The length of the simulation.
Methods Summary
default_factory
(default_value)Return a callable suitable to be used as default_factory.
from_config_dict
(config[, runtime_info])Return the instance of
dataclass_cls
created fromdata
after validation.from_dict
(data)Return the instance of
dataclass_cls
created fromdata
after validation.to_dict
(*[, dict_factory])Attributes Documentation
- config_key = 'simu'¶
- config_schema = ConfigSchema({'simu': DataclassSchema({Literal("jobkey", description="The unique identifier the job."): <class 'str'>, Literal("instrument", description="The dict contains the instrument setting."): Or(DataclassSchema({Literal("name", description="The instrument name."): 'toltec', Optional('polarized'): <class 'bool'>, Optional('hwp'): 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'>}), Optional('calobj_index'): RelPathSchema(<class 'str'>), Optional('array_prop_table'): RelPathSchema(<class 'str'>)})), Literal("mapping", description="The simulator mapping trajectory config."): Or(DataclassSchema({Literal("type", description="The mapping type."): 'lmt_tcs', Literal("filepath", description="The path to the tel.nc file."): RelPathSchema(<class 'str'>)}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('raster', 'tolteca.simu.mapping.raster:SkyRasterScanModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("length", description="The length of scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("space", description="The space between scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("n_scans", description="The number of scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("speed", description="The scan speed."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("t_turnaround", description="The time for turning around after each scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('lissajous', 'tolteca.simu.mapping.lissajous:SkyLissajousModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("x_length", description="Size of pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length", description="Size of pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega", description="Angular frequency in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega", description="Angular frequency in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta", description="Phase angle of x with respect to y."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('double_lissajous', 'tolteca.simu.mapping.lissajous:SkyDoubleLissajousModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("x_length_0", description="Size of major pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_0", description="Size of major pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_0", description="Angular frequency in x for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_0", description="Angular frequency in y for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_0", description="Phase angle of x with respect to y for major pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_length_1", description="Size of minor pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_1", description="Size of minor pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_1", description="Angular frequency in x for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_1", description="Angular frequency in y for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_1", description="Phase angle of x with respect to y for minor pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta", description="Phase angle of major pattern y with respect to minor pattern y"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('rastajous', 'tolteca.simu.mapping.lissajous:SkyRastajousModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("length", description="The length of scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("space", description="The space between scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("n_scans", description="The number of scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("speed", description="The scan speed."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("t_turnaround", description="The time for turning around after each scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_length_0", description="Size of major pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_0", description="Size of major pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_0", description="Angular frequency in x for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_0", description="Angular frequency in y for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_0", description="Phase angle of x with respect to y for major pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_length_1", description="Size of minor pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_1", description="Size of minor pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_1", description="Angular frequency in x for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_1", description="Angular frequency in y for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_1", description="Phase angle of x with respect to y for minor pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta", description="Phase angle of major pattern y with respect to minor pattern y"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))})), Literal("obs_params", description="The dict contains the observation parameters."): DataclassSchema({DataclassSchemaOptional('t_exp'): Or(PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), None), DataclassSchemaOptional('f_smp_mapping'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('f_smp_probing'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchemaOptional('sources'): [DataclassSchema({Literal("type", description="The simulator source type."): 'image', Literal("filepath", description="The path to the FITS image file."): RelPathSchema(<class 'str'>), Literal("data_exts", description="The assignments of FITS extensions to data item labels."): DictTemplateListSchema(None)}), DataclassSchema({Literal("type", description="The simulator source type."): 'point_source_catalog', Literal("filepath", description="The path to the catalog file."): RelPathSchema(<class 'str'>), Optional('name_col'): <class 'str'>, Optional('pos_cols'): [<class 'str'>], Literal("data_cols", description="The assignments of columns to data item labels."): DictTemplateListSchema(None)}), DataclassSchema({Literal("type", description="The simulator source type."): 'toltec_power_loading', Literal("atm_model_name", description="The atmosphere model to use."): Or(None, 'am_q25', 'am_q50', 'am_q75', 'toast'), Optional('atm_model_params'): Or(None, DataclassSchema({DataclassSchemaOptional('lmin_center'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('lmin_sigma'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('lmax_center'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('lmax_sigma'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('z0_center'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('z0_sigma'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('zatm'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('zmax'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('nelem_sim_max'): <class 'int'>})), Optional('atm_cache_dir'): Or(None, RelPathSchema(<class 'str'>))})], DataclassSchemaOptional('perf_params'): DataclassSchema({DataclassSchemaOptional('chunk_len'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('catalog_model_render_pixel_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('mapping_eval_interp_len'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('mapping_erfa_interp_len'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('aplm_eval_interp_alt_step'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('pre_eval_sky_bbox_padding_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('pre_eval_t_grid_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('anim_frame_rate'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchemaOptional('plots'): [DataclassSchema({Literal("type", description="The plot type."): 'visibility', Optional('save'): <class 'bool'>}), DataclassSchema({Literal("type", description="The plot type."): 'mapping', Optional('save'): <class 'bool'>})], DataclassSchemaOptional('exports'): [DataclassSchema({Literal("type", description="The export type."): 'lmtot', Optional('save'): <class 'bool'>})], DataclassSchemaOptional('plot_only'): <class 'bool'>, DataclassSchemaOptional('export_only'): <class 'bool'>, DataclassSchemaOptional('output_context'): <class 'dict'>})})¶
- logger: ClassVar = <Logger SimuConfig (DEBUG)>¶
- mapping_model¶
- optional = functools.partial(<class 'tollan.utils.dataclass_schema.DataclassSchemaOptional'>, dataclass_cls=<class 'tolteca.simu.SimuConfig'>)¶
- schema = DataclassSchema({Literal("jobkey", description="The unique identifier the job."): <class 'str'>, Literal("instrument", description="The dict contains the instrument setting."): Or(DataclassSchema({Literal("name", description="The instrument name."): 'toltec', Optional('polarized'): <class 'bool'>, Optional('hwp'): 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'>}), Optional('calobj_index'): RelPathSchema(<class 'str'>), Optional('array_prop_table'): RelPathSchema(<class 'str'>)})), Literal("mapping", description="The simulator mapping trajectory config."): Or(DataclassSchema({Literal("type", description="The mapping type."): 'lmt_tcs', Literal("filepath", description="The path to the tel.nc file."): RelPathSchema(<class 'str'>)}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('raster', 'tolteca.simu.mapping.raster:SkyRasterScanModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("length", description="The length of scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("space", description="The space between scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("n_scans", description="The number of scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("speed", description="The scan speed."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("t_turnaround", description="The time for turning around after each scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('lissajous', 'tolteca.simu.mapping.lissajous:SkyLissajousModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("x_length", description="Size of pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length", description="Size of pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega", description="Angular frequency in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega", description="Angular frequency in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta", description="Phase angle of x with respect to y."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('double_lissajous', 'tolteca.simu.mapping.lissajous:SkyDoubleLissajousModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("x_length_0", description="Size of major pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_0", description="Size of major pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_0", description="Angular frequency in x for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_0", description="Angular frequency in y for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_0", description="Phase angle of x with respect to y for major pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_length_1", description="Size of minor pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_1", description="Size of minor pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_1", description="Angular frequency in x for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_1", description="Angular frequency in y for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_1", description="Phase angle of x with respect to y for minor pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta", description="Phase angle of major pattern y with respect to minor pattern y"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchema({Literal("type", description="The mapping trajectory type."): Or('rastajous', 'tolteca.simu.mapping.lissajous:SkyRastajousModel'), Literal("target", description="The target name or sky coordinate."): <class 'str'>, Optional('target_frame'): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("ref_frame", description="The reference frame to interpret the mapping pattern."): Use(<function make_offset_mapping_model_config_cls.<locals>._get_frame_inst>), Literal("t0", description="The starting time of the observation."): Use(<class 'astropy.time.core.Time'>), Literal("length", description="The length of scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("space", description="The space between scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("n_scans", description="The number of scans."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("rot", description="The rotation angle with respect to the +lon direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("speed", description="The scan speed."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("t_turnaround", description="The time for turning around after each scan."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_length_0", description="Size of major pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_0", description="Size of major pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_0", description="Angular frequency in x for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_0", description="Angular frequency in y for major pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_0", description="Phase angle of x with respect to y for major pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_length_1", description="Size of minor pattern in x direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_length_1", description="Size of minor pattern in y direction."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("x_omega_1", description="Angular frequency in x for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("y_omega_1", description="Angular frequency in y for minor pattern."): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta_1", description="Phase angle of x with respect to y for minor pattern"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), Literal("delta", description="Phase angle of major pattern y with respect to minor pattern y"): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))})), Literal("obs_params", description="The dict contains the observation parameters."): DataclassSchema({DataclassSchemaOptional('t_exp'): Or(PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), None), DataclassSchemaOptional('f_smp_mapping'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('f_smp_probing'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchemaOptional('sources'): [DataclassSchema({Literal("type", description="The simulator source type."): 'image', Literal("filepath", description="The path to the FITS image file."): RelPathSchema(<class 'str'>), Literal("data_exts", description="The assignments of FITS extensions to data item labels."): DictTemplateListSchema(None)}), DataclassSchema({Literal("type", description="The simulator source type."): 'point_source_catalog', Literal("filepath", description="The path to the catalog file."): RelPathSchema(<class 'str'>), Optional('name_col'): <class 'str'>, Optional('pos_cols'): [<class 'str'>], Literal("data_cols", description="The assignments of columns to data item labels."): DictTemplateListSchema(None)}), DataclassSchema({Literal("type", description="The simulator source type."): 'toltec_power_loading', Literal("atm_model_name", description="The atmosphere model to use."): Or(None, 'am_q25', 'am_q50', 'am_q75', 'toast'), Optional('atm_model_params'): Or(None, DataclassSchema({DataclassSchemaOptional('lmin_center'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('lmin_sigma'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('lmax_center'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('lmax_sigma'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('z0_center'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('z0_sigma'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('zatm'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('zmax'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('nelem_sim_max'): <class 'int'>})), Optional('atm_cache_dir'): Or(None, RelPathSchema(<class 'str'>))})], DataclassSchemaOptional('perf_params'): DataclassSchema({DataclassSchemaOptional('chunk_len'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('catalog_model_render_pixel_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('mapping_eval_interp_len'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('mapping_erfa_interp_len'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('aplm_eval_interp_alt_step'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('pre_eval_sky_bbox_padding_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('pre_eval_t_grid_size'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>)), DataclassSchemaOptional('anim_frame_rate'): PhysicalTypeSchema(Or(<class 'int'>, <class 'float'>, <class 'str'>))}), DataclassSchemaOptional('plots'): [DataclassSchema({Literal("type", description="The plot type."): 'visibility', Optional('save'): <class 'bool'>}), DataclassSchema({Literal("type", description="The plot type."): 'mapping', Optional('save'): <class 'bool'>})], DataclassSchemaOptional('exports'): [DataclassSchema({Literal("type", description="The export type."): 'lmtot', Optional('save'): <class 'bool'>})], DataclassSchemaOptional('plot_only'): <class 'bool'>, DataclassSchemaOptional('export_only'): <class 'bool'>, DataclassSchemaOptional('output_context'): <class 'dict'>})¶
- simulator¶
- source_models¶
- t_simu¶
The length of the simulation.
It equals
obs_params.t_exp
when set, otherwiset_pattern
of the mapping pattern is used.
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_config_dict(config, runtime_info=None, **kwargs)¶
Return the instance of
dataclass_cls
created fromdata
after validation.
- from_dict(data)¶
Return the instance of
dataclass_cls
created fromdata
after validation.
- to_config_dict()¶
- to_dict(*, dict_factory=<class 'dict'>)¶