From c79b919ed61c982c52a2a9a46175dfd117675c8d Mon Sep 17 00:00:00 2001 From: Unknown MX Person Date: Tue, 25 Mar 2025 15:21:02 +0100 Subject: [PATCH] auto formated --- pxiii_bec/scripts/beamlinescripts.py | 3 +-- pxiii_bec/scripts/scanwrappers.py | 14 ++------------ 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/pxiii_bec/scripts/beamlinescripts.py b/pxiii_bec/scripts/beamlinescripts.py index 95d02dc..8bde700 100644 --- a/pxiii_bec/scripts/beamlinescripts.py +++ b/pxiii_bec/scripts/beamlinescripts.py @@ -71,8 +71,7 @@ def rock(steps, exp_time, scan_start=None, scan_end=None, datasource=None, visua return s, firt_par -def monitor(device,steps,t=1): +def monitor(device, steps, t=1): for _ in range(steps): print(device.read()) time.sleep(t) - diff --git a/pxiii_bec/scripts/scanwrappers.py b/pxiii_bec/scripts/scanwrappers.py index 82dd10a..78a17df 100644 --- a/pxiii_bec/scripts/scanwrappers.py +++ b/pxiii_bec/scripts/scanwrappers.py @@ -8,15 +8,7 @@ def bl_check_beam(): def ascan( - motor, - scan_start, - scan_end, - steps, - exp_time, - plot=None, - visual=True, - relative=False, - **kwargs, + motor, scan_start, scan_end, steps, exp_time, plot=None, visual=True, relative=False, **kwargs ): """Demo step scan with plotting @@ -67,9 +59,7 @@ def ascan( firt_par = plt1.get_dap_params() else: # Fitting without GUI - firt_par = bec.dap.LinearModel.fit( - s, motor.name, motor.name, plot.name, plot.name - ) + firt_par = bec.dap.LinearModel.fit(s, motor.name, motor.name, plot.name, plot.name) # # Some basic fit # dkey = datasource.full_name