From 53906a2d0a0fe95eb2d8ffafe09f1f0b2f2a5930 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 13:20:42 +0000 Subject: [PATCH] Fix amplitude bounds never applied in the Red Pitaya actuator param.value was compared to a string without being called, so the amplitude branch was dead and the bounds stayed at the frequency ones. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL --- .../daq_move_plugins/daq_move_RedpitayaSCPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymodaq_plugins_redpitaya/daq_move_plugins/daq_move_RedpitayaSCPI.py b/src/pymodaq_plugins_redpitaya/daq_move_plugins/daq_move_RedpitayaSCPI.py index 592a5b6..883183b 100644 --- a/src/pymodaq_plugins_redpitaya/daq_move_plugins/daq_move_RedpitayaSCPI.py +++ b/src/pymodaq_plugins_redpitaya/daq_move_plugins/daq_move_RedpitayaSCPI.py @@ -127,7 +127,7 @@ def commit_settings(self, param: Parameter): if param.value() =='frequency': self.settings.child('bounds', 'min_bound').setValue(1e-6) self.settings.child('bounds', 'max_bound').setValue(50e6) - elif param.value == 'amplitude': + elif param.value() == 'amplitude': self.settings.child('bounds', 'min_bound').setValue(0) self.settings.child('bounds', 'max_bound').setValue(1)