aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/power_supply
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:11:17 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:11:17 -0400
commitcada672fc0d901c129c34544dbc5a7ac70de4b4b (patch)
tree23130bd1e1c40a8d93b1c1e319b2ca53e7e30d6e /qolab/hardware/power_supply
parent41dbe71af15894c9f87e29cf3eba7de5ec5ff4e2 (diff)
downloadqolab-cada672fc0d901c129c34544dbc5a7ac70de4b4b.tar.gz
qolab-cada672fc0d901c129c34544dbc5a7ac70de4b4b.zip
do not create unused variables
Diffstat (limited to 'qolab/hardware/power_supply')
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py
index 52a7673..76d568e 100644
--- a/qolab/hardware/power_supply/keysight_e3612a.py
+++ b/qolab/hardware/power_supply/keysight_e3612a.py
@@ -60,7 +60,7 @@ class KeysightE3612A(PowerSupplySCPI):
OFF stands for independent channels.
"""
cmnd = f"OUTP:PAIR {val}"
- rstr = self.write(cmnd)
+ self.write(cmnd)
def setChanOn(self, chNum):
"""Power up channel output"""
@@ -111,7 +111,7 @@ class KeysightE3612A(PowerSupplySCPI):
if (chNum == 2 or chNum == 3) and val > 25.750:
val = 25.750
cmnd = f"SOURCe:VOLT {val},(@{chNum})"
- rstr = self.write(cmnd)
+ self.write(cmnd)
@BasicInstrument.tsdb_append
def getChanIout(self, chNum):
@@ -182,7 +182,7 @@ class KeysightE3612A(PowerSupplySCPI):
if (chNum == 2 or chNum == 3) and val > 1.030:
val = 1.030
cmnd = f"SOURCe:CURR {val},(@{chNum})"
- rstr = self.write(cmnd)
+ self.write(cmnd)
if __name__ == "__main__":