From bc9a14b0c434bd04e22d39b53d61c7b79b8ae865 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Aug 2023 20:53:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- socs/agents/wiregrid_actuator/agent.py | 4 ++-- socs/agents/wiregrid_kikusui/agent.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/socs/agents/wiregrid_actuator/agent.py b/socs/agents/wiregrid_actuator/agent.py index f88e97891..deb109c1c 100644 --- a/socs/agents/wiregrid_actuator/agent.py +++ b/socs/agents/wiregrid_actuator/agent.py @@ -349,7 +349,7 @@ def check_limitswitch(self, session, params=None): 'check_limitswitch(): ' 'Lock could not be acquired because it is held by {}.' .format(self.lock.job)) - return False,\ + return False, \ 'check_limitswitch(): '\ 'Could not acquire lock' @@ -764,7 +764,7 @@ def acq(self, session, params=None): 'acq(): ' 'Could not re-acquire lock now held by {}.' .format(self.lock.job)) - return False,\ + return False, \ 'acq(): Could not re-acquire lock (timeout)' current_time = time.time() diff --git a/socs/agents/wiregrid_kikusui/agent.py b/socs/agents/wiregrid_kikusui/agent.py index 1008a19a4..442df9b78 100644 --- a/socs/agents/wiregrid_kikusui/agent.py +++ b/socs/agents/wiregrid_kikusui/agent.py @@ -362,7 +362,7 @@ def get_vc(self, session, params=None): v_val, c_val = self.cmd.user_input('VC?') s_msg, s_val = self.cmd.user_input('O?') - return True,\ + return True, \ 'Get Kikusui voltage / current: {} V / {} A [status={}]'\ .format(v_val, c_val, s_val) @@ -381,10 +381,10 @@ def get_angle(self, session, params=None): angle = self._get_position() if angle < 0.: - return False,\ + return False, \ 'Could not get the angle of the wire-grid rotation.' - return True,\ + return True, \ 'Get wire-grid rotation angle = {} deg'.format(angle) @ocs_agent.param('storepath', default='/data/wg-data/action/', type=str) @@ -431,7 +431,7 @@ def calibrate_wg(self, session, params): logfile.close() - return True,\ + return True, \ 'Micro step rotation of wire grid finished. '\ 'Please calibrate and take feedback params.' @@ -541,11 +541,11 @@ def IV_acq(self, session, params=None): self.log.warn( 'Failed to aquire the lock ' 'for IV_acq()!') - return False,\ + return False, \ 'Could not re-acquire lock '\ 'for IV_acq() (timeout=-1)' else: - return False,\ + return False, \ 'Could not re-acquire lock '\ 'for IV_acq() (timeout=1000 sec)'