iqm.cpc.compiler.station_settings.Map

iqm.cpc.compiler.station_settings.Map#

class iqm.cpc.compiler.station_settings.Map(parameter, observation_path_template, settings_path_template=None, required=True)#

Bases: object

Mapping from a calibration observation path to a corresponding station settings path.

If settings_path_template is None, it is derived from observation_path_template.

A Parameter object is included in the mapping to conveniently handle the unit and data type. Its name is unused.

Attributes

required

settings_path_template

parameter

observation_path_template

Methods

__delattr__(name)

Implement delattr(self, name).

__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__repr__()

Return repr(self).

__setattr__(name, value)

Implement setattr(self, name, value).

observation_path(component)

Observation path for the given component.

settings_path(component)

Settings path for the given component.

Parameters:
  • parameter (Parameter) –

  • observation_path_template (str) –

  • settings_path_template (str | None) –

  • required (bool) –

observation_path(component)#

Observation path for the given component.

Parameters:

component (str) –

Return type:

str

settings_path(component)#

Settings path for the given component.

Parameters:

component (str) –

Return type:

str