From c18fec4081b7563f2da9ba127f7b4dc7234da0cd Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 28 Aug 2025 18:00:44 +0200 Subject: [PATCH] add general_stop_whitelist --- devices.py | 8 +++++++- setups/frappy_main.py | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devices.py b/devices.py index 5429060..30c7ef6 100644 --- a/devices.py +++ b/devices.py @@ -730,7 +730,13 @@ class FrappyNode(SecNodeDevice, Moveable): "set to 'general' if all parameters should appear in the datafile header", type=str, default='', settable=True), 'quiet_init': Param('flag to set loglevel to error while initializing', - type=bool, default=True, settable=True) + type=bool, default=True, settable=True), + # duplicate from SecNodeDevice. needed for the case where the code for + # the SecNodeDevcice is not up to date, but the setup is already new + # does not yet have the i + 'general_stop_whitelist': Param('module names to accept general stop', + type=listof(str), prefercache=False, + default=[], userparam=False), } _cfgvalue = None diff --git a/setups/frappy_main.py b/setups/frappy_main.py index 6dc0d9c..8aa2151 100644 --- a/setups/frappy_main.py +++ b/setups/frappy_main.py @@ -7,5 +7,6 @@ devices = { device('nicos_sinq.frappy_sinq.devices.FrappyNode', description='main SEC node', unit='', async_only=True, prefix=environ.get('SE_PREFIX', 'se_'), auto_create=True, service='main', + general_stop_whitelist=['om', 'stickrot'], ), }