From b41caf1675d904b7c009da9f6acb96194f2b2b21 Mon Sep 17 00:00:00 2001 From: thijs snijder <snijder@astron.nl> Date: Tue, 27 Sep 2022 09:51:35 +0200 Subject: [PATCH] L2SS-981 added _default to several properties --- tangostationcontrol/tangostationcontrol/devices/recv.py | 2 +- tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/recv.py b/tangostationcontrol/tangostationcontrol/devices/recv.py index aeaa506c3..c17e9803d 100644 --- a/tangostationcontrol/tangostationcontrol/devices/recv.py +++ b/tangostationcontrol/tangostationcontrol/devices/recv.py @@ -69,7 +69,7 @@ class RECV(opcua_device): default_value=[0] * 96 ) - RCU_PWR_ANT_on_RW = device_property( + RCU_PWR_ANT_on_RW_default = device_property( dtype='DevVarBooleanArray', mandatory=False, default_value=[False] * 96 # turn power off by default in test setups, f.e. to prevent blowing up the noise sources diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py index d35701ee4..a87c6b6e0 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py @@ -59,20 +59,20 @@ class SDP(opcua_device): # If we enable the waveform generator, we want some sane defaults. - FPGA_wg_amplitude_RW = device_property( + FPGA_wg_amplitude_RW_default = device_property( dtype='DevVarDoubleArray', mandatory=False, default_value=[[0.1] * 12] * 16 ) - FPGA_wg_frequency_RW = device_property( + FPGA_wg_frequency_RW_default = device_property( dtype='DevVarDoubleArray', mandatory=False, # Emit a signal on subband 102 default_value=[[102 * 200e6/1024] * 12] * 16 ) - FPGA_wg_phase_RW = device_property( + FPGA_wg_phase_RW_default = device_property( dtype='DevVarDoubleArray', mandatory=False, default_value=[[0.0] * 12] * 16 -- GitLab