aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 12:21:22 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 12:27:49 -0400
commit50c9b992293e1cb4be9efae5a5e5ffa6381aedfa (patch)
tree9fe5eb1271cd2394a97971d2b08b23ff9cd33ea8 /qolab
parenteec4d22d847f2cd3e35386583620a9fc63829207 (diff)
downloadqolab-50c9b992293e1cb4be9efae5a5e5ffa6381aedfa.tar.gz
qolab-50c9b992293e1cb4be9efae5a5e5ffa6381aedfa.zip
split the line and suppress linter barking
Diffstat (limited to 'qolab')
-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: