Update utils.py

This commit is contained in:
2022-10-24 23:10:01 +00:00
parent 87d97faece
commit 2a4fa2d3c1

View File

@@ -144,7 +144,7 @@ def process_run(run_number, rois,detector='JF16T03V01', calculate =None, only_sh
def find_offset(run_number, ch1,ch2, offsets=range(-7,7),step=0,verbose = False):
"""Attempts to find an ideal offset between pids of two channels. Offset is added to channel_2.
Returns best offset, best_correlation, [all offsets, all correlations].""""
Returns best offset, best_correlation, [all offsets, all correlations]."""
scan = scan_info(run_number)
d = scan[step]
assert len(d[ch1].shape) ==1, "Channel 2 has more than 1 dimension, can't correlate"