Skip to content
Snippets Groups Projects
Commit 20806841 authored by BRONES Romain's avatar BRONES Romain
Browse files

feat: Add configuration for some CentralNode attributes

* Orbit error, ref and corrector command
parent ddfc4c1b
No related branches found
No related tags found
No related merge requests found
......@@ -376,6 +376,24 @@ def set_attr_config_centralnode(cnp):
c.max_value='2'
cnp.set_attribute_config(c)
c = cnp.get_attribute_config("corr_command_{}".format(p))
c.description = "Correction command sent for {} plan, in Ampers. Mobile mean on 1 second.\n".format(p.upper()) +c.description
c.format = '%f'
c.unit = 'A'
cnp.set_attribute_config(c)
c = cnp.get_attribute_config("orbit_error_{}".format(p))
c.description = "Orbit error read from BPMs, in nm. Mobile mean on 1 second.\n".format(p.upper()) +c.description
c.format = '%d'
c.unit = 'nm'
cnp.set_attribute_config(c)
c = cnp.get_attribute_config("corr_ref_{}".format(p))
c.description = "Orbit reference, in nm.\n".format(p.upper()) +c.description
c.format = '%d'
c.unit = 'nm'
cnp.set_attribute_config(c)
for n in "12":
for cf in ("a","b","ic","d"):
c = cnp.get_attribute_config("corr_k{}{}_{}".format(n,cf,p))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment