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

Merge branch 'bam-units' into 'master'

Convert BAM to ps units

Closes #51

See merge request !183
parents 4d1c1626 84f761c5
No related branches found
No related tags found
1 merge request!183Convert BAM to ps units
......@@ -10,6 +10,7 @@ unreleased
- fix :issue:`8` regarding azimuthal integration with pyFAI and hexagonal DSSC pixel splitting by providing an example notebook :mr:`174`
- fix :issue:`46` with a change in dask groupby mean behavior :mr:`174`
- fix :issue:`47` SLURM script not using the correct kernel :mr:`176`
- fix :issue:`51` make sure that BAM units are in ps :mr:`183`
- **Improvements**
......
......@@ -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)
log.debug(f'Loading {m} from DataCollection.')
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')
# 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