Skip to content

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

Karim Ahmed requested to merge feat/force_fixed_gain_constants_old_data into master

Description

MID started recorrecting data from October in burst mode. These data were corrected before with dynamic gain constants and no fixed dark constants were taken.

This MR accounts for this by expanding https://git.xfel.eu/calibration/planning/-/issues/196 to force fixed gain constants for burst mode in dynamic gain. Then in case of no available constants check for dynamic gain constants. These constants will be accepted only if they don't have more than 3-day time difference with the RAW data.

  • New functions: jungfrau_cal_mdata and force_fixed_gain_constants
  • Try retrieving fixed gain constants, try retrieving dynamic gain constants if no fixed constants
  • Dont accept dynamic gain constants older than 3 days

How Has This Been Tested?

  • TBD

Relevant Documents (optional)

This is an example of what will happen if the alternative retrieval for dynamic gain constants leads to constants with a time difference greater than 3 days.

Alt Text

This is one of the failed JF runs at MID. As shown, no fixed constants retrieved, so a dynamic constants were retrieved instead and the time difference validated

Alt Text

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

Reviewers

@schmidtp @mramilli @kluyvert

Edited by Karim Ahmed

Merge request reports