From 20806841a4dd9c8c8bd33297c41271e8a6764b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20BRON=C3=88S?= <romain.brones@synchrotron-soleil.fr> Date: Thu, 25 Jan 2024 09:58:30 +0100 Subject: [PATCH] feat: Add configuration for some CentralNode attributes * Orbit error, ref and corrector command --- FofbTool.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/FofbTool.py b/FofbTool.py index 65ee486..22741f9 100755 --- a/FofbTool.py +++ b/FofbTool.py @@ -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)) -- GitLab