From 3116f0692a6a6af6601714d58724d68860f75d77 Mon Sep 17 00:00:00 2001 From: {Johann Heyszl} Date: Tue, 26 Sep 2023 10:47:52 +0200 Subject: [PATCH] lint fix Signed-off-by: {Johann Heyszl} --- cw/waverunner.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cw/waverunner.py b/cw/waverunner.py index d3815ddd4..528d07a2b 100755 --- a/cw/waverunner.py +++ b/cw/waverunner.py @@ -372,11 +372,16 @@ def capture_and_transfer_waves(self): res = self._ask("WAIT 10;*OPC?") assert res == "*OPC 1" # Transfer and parse waveform data. - if self.acqu_channel == "C1": data = self._ask_raw(b"C1:WF? DAT1") - elif self.acqu_channel == "C2": data = self._ask_raw(b"C2:WF? DAT1") - elif self.acqu_channel == "C3": data = self._ask_raw(b"C3:WF? DAT1") - elif self.acqu_channel == "C4": data = self._ask_raw(b"C4:WF? DAT1") - else: print("WAVERUNNER: Error: Channel selection invalid") + if self.acqu_channel == "C1": + data = self._ask_raw(b"C1:WF? DAT1") + elif self.acqu_channel == "C2": + data = self._ask_raw(b"C2:WF? DAT1") + elif self.acqu_channel == "C3": + data = self._ask_raw(b"C3:WF? DAT1") + elif self.acqu_channel == "C4": + data = self._ask_raw(b"C4:WF? DAT1") + else: + print("WAVERUNNER: Error: Channel selection invalid") waves = self._parse_waveform(data) return waves