secop_ophyd.codegen.model#
What the code generator renders: the generated classes and their attributes.
Module Contents#
Classes#
Represents an enum member with name and value. |
|
Represents an enum class definition. |
|
One key of a generated TypedDict. |
|
A TypedDict describing a SECoP struct, e.g. the target of a Drivable. |
|
Represents a module attribute with name, type, and optional description. |
|
A channel device of an acquisition controller: |
|
Represents a module property attribute with name, type |
|
Represents a module parameter attribute with name, type, and optional description. |
|
Represents a SECoP command exposed as a Command/TriggerableCommand class-level annotation (the ‘<name>’ attribute). |
|
Represents a class method with signature and description. |
|
Represents a module class to be generated. |
|
Represents a node class to be generated. |
API#
- class secop_ophyd.codegen.model.EnumClass[source]#
Represents an enum class definition.
- members: list[secop_ophyd.codegen.model.EnumMember] = None#
- class secop_ophyd.codegen.model.TypedDictClass[source]#
A TypedDict describing a SECoP struct, e.g. the target of a Drivable.
- members: list[secop_ophyd.codegen.model.TypedDictMember] = None#
- class secop_ophyd.codegen.model.ModuleAttribute[source]#
Represents a module attribute with name, type, and optional description.
- class secop_ophyd.codegen.model.ChannelAttribute[source]#
A channel device of an acquisition controller:
name(from its role),type(its module class) and the annotation naming its role and module.
- class secop_ophyd.codegen.model.PropertyAttribute[source]#
Represents a module property attribute with name, type
- class secop_ophyd.codegen.model.ParameterAttribute[source]#
Represents a module parameter attribute with name, type, and optional description.
- class secop_ophyd.codegen.model.CommandAttribute[source]#
Represents a SECoP command exposed as a Command/TriggerableCommand class-level annotation (the ‘<name>’ attribute).
- class secop_ophyd.codegen.model.Method(cmd_name: str, description: str, cmd_sign: inspect.Signature)[source]#
Represents a class method with signature and description.
This class supports both old-style initialization (for backward compatibility) and new-style dataclass initialization.
Initialization
Initialize Method (backward compatibility constructor).
- Args:
cmd_name: Name of the command description: Description of the command cmd_sign: Signature of the command
- class secop_ophyd.codegen.model.ModuleClass[source]#
Represents a module class to be generated.
- parameters: list[secop_ophyd.codegen.model.ParameterAttribute] = 'field(...)'#
- properties: list[secop_ophyd.codegen.model.PropertyAttribute] = 'field(...)'#
- methods: list[secop_ophyd.codegen.model.Method] = 'field(...)'#
- commands: list[secop_ophyd.codegen.model.CommandAttribute] = 'field(...)'#
- enums: list[secop_ophyd.codegen.model.EnumClass] = 'field(...)'#
- typed_dicts: list[secop_ophyd.codegen.model.TypedDictClass] = 'field(...)'#
- channels: list[secop_ophyd.codegen.model.ChannelAttribute] = 'field(...)'#
- class secop_ophyd.codegen.model.NodeClass[source]#
Represents a node class to be generated.
- properties: list[secop_ophyd.codegen.model.PropertyAttribute] = 'field(...)'#
- modules: list[secop_ophyd.codegen.model.ModuleAttribute] = 'field(...)'#