Skip to content

Manage ranges check for attributes #25

@gupichon

Description

@gupichon

Description, motivation and use case
The control system must provide a range of acceptable values for writable attributes.

Proposed solution

  • Add a valid range to the device access in cases where it is necessary.
  • Add a get_range() method, which must return the minimum and maximum values of an attribute, if they exist.
attribute: srmag/ps-corr-sh2/c04-b-ch1/current
range: [-2.0,2.0]
unit: A

attribute: srmag/ps-corr-sh2/c04-b-ch2/current
range: [-2.0,null]  # -2 to + infinity
unit: A

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions