accml_lib.core.model.config package

Submodules

accml_lib.core.model.config.magnet module

class accml_lib.core.model.config.magnet.EnergyDependentConversionModel(**data)[source]

Bases: BaseModel

Energy-dependent conversion model for magnetic objects.

Todo

  • Add metadata describing the units

Parameters:
conversion_type: str
intercept: float
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

slope: float
class accml_lib.core.model.config.magnet.MagneticObject(**data)[source]

Bases: BaseModel

Parameters:
conversion: EnergyDependentConversionModel
dev_id: Hashable
elem_id: Hashable
family_member: Sequence[str]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

power_converter_id: Hashable
type: str

accml_lib.core.model.config.power_converter module

class accml_lib.core.model.config.power_converter.PowerConverter(**data)[source]

Bases: BaseModel

Parameters:
get_current()[source]
id: Hashable
interface: PowerConverterInterface
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

response: ResponseModel
class accml_lib.core.model.config.power_converter.PowerConverterInterface(**data)[source]

Bases: BaseModel

Parameters:
  • setpoint (str)

  • readback (str)

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

readback: str

RB’

Type:

e.g., ‘CHANNEL

Type:

QF1C01A

setpoint: str

SP’

Type:

e.g., ‘CHANNEL

Type:

QF1C01A

class accml_lib.core.model.config.power_converter.ResponseModel(**data)[source]

Bases: BaseModel

General response model for a device reacting to a control input change

Timeout: whithin this time the device has to answer Settle time: after this time the device is expected to be in a stable state

Parameters:
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

settle_time: float
timeout: float

seconds

Module contents