From 07b83bbe2e854167c8485196056e503784737b02 Mon Sep 17 00:00:00 2001 From: x07maop Date: Fri, 1 Apr 2016 15:25:00 +0200 Subject: [PATCH] Script execution --- script/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 723a05c..678b256 100644 --- a/script/local.py +++ b/script/local.py @@ -382,9 +382,11 @@ def hyst_step_mult(forward, ranges, ramp_speed, energies, energy_change_sleep = """ run("HystScanStep",{"FIELD":field, "RANGES":ranges, "ENERGIES":energies, "ENERGY_CHANGE_SLEEP":energy_change_sleep, "FIELD_CHANGE_SLEEP":field_change_sleep, "MODE":mode, "OFFSET":offset}) -def scan_e(start, end, step, settling_time = 0, accumulation_time = None): +def scan_e(start, end, step, settling_time = 0, accumulation_time = None, name = None): """ """ + if name is not None: + set_context(name = name) #wait_beam() acc = Accumulator([signal_tey, signal_i0, signal_trans, tey_norm, trans_norm], accumulation_time) detectors = acc.getSensors() + [polmod, pol_angle, temperature, current]