Skip to content
Snippets Groups Projects

[Jungfrau][Correct] Account for missing fixed gain constants when burst mode in dynamic gain

Merged Karim Ahmed requested to merge feat/force_fixed_gain_constants_old_data into master
1 unresolved thread
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
time_difference = creation_time - datetime.fromisoformat(offset["begin_validity_at"])
time_difference = creation_time - datetime.fromisoformat(offset["begin_validity_at"])
if abs(time_difference.days) > 3:
if abs(time_difference.days) > 3:
warning(
warning(
f"No dynamic gain constant retrieved for {mod} with the last"
f"No dynamic gain constant retrieved for {mod} with at least"
" 3 days from the RAW data create date."
" 3 days time difference with the RAW data creation date."
" Please make sure there are available constants.")
" Please make sure there are available constants.")
jf_metadata[mod].pop("Offset10Hz")
jf_metadata[mod].pop("Offset10Hz")
Loading