Skip to content
Snippets Groups Projects
Commit e60d235c authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

Convert BAM to ps units

parent 4d1c1626
No related branches found
No related tags found
1 merge request!183Convert BAM to ps units
...@@ -87,6 +87,10 @@ def get_bam(run, mnemonics=None, merge_with=None, bunchPattern='sase3'): ...@@ -87,6 +87,10 @@ def get_bam(run, mnemonics=None, merge_with=None, bunchPattern='sase3'):
val = run.get_array(*run_mnemonics[m].values(), roi=roi, name=m) val = run.get_array(*run_mnemonics[m].values(), roi=roi, name=m)
log.debug(f'Loading {m} from DataCollection.') log.debug(f'Loading {m} from DataCollection.')
val[run_mnemonics[m]['dim'][0]] = np.arange(2700) val[run_mnemonics[m]['dim'][0]] = np.arange(2700)
# Since winter shutdown 2021-2022, units changed from ps to fs
# Here we convert to ps
if run_mnemonics[m]['key'] != 'data.lowChargeArrivalTime':
val *= 1e-3
ds = ds.merge(val, join='inner') ds = ds.merge(val, join='inner')
# check if bunch pattern table exists # check if bunch pattern table exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment