fix of find_offset()

This commit is contained in:
2022-10-31 19:17:11 +00:00
parent 014bcd9a24
commit 3f02a384fb

View File

@@ -151,7 +151,7 @@ def find_offset(run_number, ch1,ch2, offsets=range(-7,7),step=0,verbose = False)
assert len(d[ch2].shape) ==1, "Channel 2 has more than 1 dimension, can't correlate"
corrs = []
for offset in offsets:
scan = cu.scan_info(run_number)
scan = scan_info(run_number)
d = scan[step]
d[ch2].offset = offset
subset = d[ch1,ch2]