fixed number_of_steps()

This commit is contained in:
2023-03-23 13:33:30 +01:00
parent f2c576694f
commit 9dbcfd7bff

View File

@@ -97,7 +97,7 @@ def print_run_info(
break
def number_of_steps(scan_number_or_scan):
"""Returns number of steps for a scan object or run number"""
scan = cu.get_scan_from_run_number_or_scan(scan_number_or_scan)
scan = get_scan_from_run_number_or_scan(scan_number_or_scan)
return len(scan.info['scan_readbacks'])
def process_run(run_number, rois,detector='JF16T03V01', calculate =None, only_shots=slice(None), n_jobs=cpu_count()-2):