Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: {Johann Heyszl} <[email protected]>
  • Loading branch information
johannheyszl committed Sep 26, 2023
1 parent e1d10ee commit 3116f06
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions cw/waverunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3116f06

Please sign in to comment.