aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qolab/hardware/i_server/i800.py3
-rw-r--r--qolab/hardware/multimeter/bk_5491.py10
2 files changed, 10 insertions, 3 deletions
diff --git a/qolab/hardware/i_server/i800.py b/qolab/hardware/i_server/i800.py
index 0f2a8e0..1b8cec6 100644
--- a/qolab/hardware/i_server/i800.py
+++ b/qolab/hardware/i_server/i800.py
@@ -61,7 +61,8 @@ class I800(BasicInstrument):
if lreply[0:5] != f"{modbus_cmnd}":
# check the proper echo response
logger.warning(
- f"Warning: expected {modbus_cmnd} but got {lreply[0:5]} in full set {reply}"
+ f"Warning: expected {modbus_cmnd} but got {lreply[0:5]}"
+ + f" in full set {reply}" # noqa: W503
)
if trials > 0:
return self.query(cmnd, trials - 1)
diff --git a/qolab/hardware/multimeter/bk_5491.py b/qolab/hardware/multimeter/bk_5491.py
index 270d7c8..05e0a05 100644
--- a/qolab/hardware/multimeter/bk_5491.py
+++ b/qolab/hardware/multimeter/bk_5491.py
@@ -79,13 +79,19 @@ class BK_5491(Multimeter):
prompt = reply
if prompt[0] == "@":
if Nattemts >= 2:
- # print('dbg: numeric reading is not available yet, attempt one more time')
+ """
+ print(
+ "dbg: numeric reading is not available yet"
+ + ", attempt one more time"
+ )
+ """
time.sleep(self.switchTime)
return self._readwrite(
cmd_string, expect_reply=expect_reply, Nattemts=Nattemts - 1
)
print(
- f'Error: we ask {cmd_string=} and got prompt "{reply}" instead of result'
+ f"Error: we ask {cmd_string=}"
+ + f' and got prompt "{reply}" instead of result' # noqa: W503
)
return None
else: