aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/multimeter
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/hardware/multimeter
parenteec4d22d847f2cd3e35386583620a9fc63829207 (diff)
downloadqolab-50c9b992293e1cb4be9efae5a5e5ffa6381aedfa.tar.gz
qolab-50c9b992293e1cb4be9efae5a5e5ffa6381aedfa.zip
split the line and suppress linter barking
Diffstat (limited to 'qolab/hardware/multimeter')
-rw-r--r--qolab/hardware/multimeter/bk_5491.py10
1 files changed, 8 insertions, 2 deletions
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: