Skip to content

Commit e63e3ea

Browse files
committed
updated
1 parent e98e5fe commit e63e3ea

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

wright_plans/attune.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _spectrometer_md(spectrometer):
1818
return spectrometer_md
1919

2020

21-
def motortune(detectors, opa, use_tune_points, motors, spectrometer=None, *, md=None):
21+
def motortune(detectors, *args, opa, use_tune_points, motors, spectrometer=None, md=None):
2222
cyc = 1
2323
md = md or {}
2424
relative_sets = {}
@@ -188,7 +188,7 @@ def get_tune_points(instrument, arrangement, scanned_motors):
188188
return unique[diff > tol]
189189

190190

191-
def run_holistic(detectors, opa, motor0, motor1, width, npts, spectrometer, *, md=None):
191+
def run_holistic(detectors, *args, opa, motor0, motor1, width, npts, spectrometer, md=None):
192192
md = md or {}
193193
local_md = {
194194
"plan_name": "run_holistic",
@@ -213,6 +213,7 @@ def run_holistic(detectors, opa, motor0, motor1, width, npts, spectrometer, *, m
213213
return (
214214
yield from motortune(
215215
detectors,
216+
None,
216217
opa,
217218
True,
218219
{motor1: {"method": "scan", "width": width, "npts": npts}},
@@ -222,7 +223,7 @@ def run_holistic(detectors, opa, motor0, motor1, width, npts, spectrometer, *, m
222223
)
223224

224225

225-
def run_intensity(detectors, opa, motor, width, npts, spectrometer, *, md=None):
226+
def run_intensity(detectors, *args, opa, motor, width, npts, spectrometer, md=None):
226227
assert not spectrometer or spectrometer["method"] in ("none", "track", "zero")
227228
md = md or {}
228229
local_md = {
@@ -240,6 +241,7 @@ def run_intensity(detectors, opa, motor, width, npts, spectrometer, *, md=None):
240241
return (
241242
yield from motortune(
242243
detectors,
244+
None,
243245
opa,
244246
True,
245247
{motor: {"method": "scan", "width": width, "npts": npts}},
@@ -249,7 +251,7 @@ def run_intensity(detectors, opa, motor, width, npts, spectrometer, *, md=None):
249251
)
250252

251253

252-
def run_setpoint(detectors, opa, motor, width, npts, spectrometer, *, md=None):
254+
def run_setpoint(detectors, *args, opa, motor, width, npts, spectrometer, md=None):
253255
md = md or {}
254256
local_md = {
255257
"plan_name": "run_setpoint",
@@ -266,6 +268,7 @@ def run_setpoint(detectors, opa, motor, width, npts, spectrometer, *, md=None):
266268
return (
267269
yield from motortune(
268270
detectors,
271+
None,
269272
opa,
270273
True,
271274
{motor: {"method": "scan", "width": width, "npts": npts}},
@@ -275,7 +278,7 @@ def run_setpoint(detectors, opa, motor, width, npts, spectrometer, *, md=None):
275278
)
276279

277280

278-
def run_tune_test(detectors, opa, spectrometer, *, md=None):
281+
def run_tune_test(detectors, *args, opa, spectrometer, md=None):
279282
md = md or {}
280283
local_md = {
281284
"plan_name": "run_tune_test",
@@ -287,5 +290,5 @@ def run_tune_test(detectors, opa, spectrometer, *, md=None):
287290
"hints": {},
288291
}
289292
return (
290-
yield from motortune(detectors, opa, True, {}, spectrometer, md=local_md | md)
293+
yield from motortune(detectors, None, opa, True, {}, spectrometer, md=local_md | md)
291294
)

0 commit comments

Comments
 (0)