Skip to content

[Jungfrau][Correct][Dark] New Settings and gain mode enums to read the jungfrau correct parameters.

Karim Ahmed requested to merge feat/new_jungfrau_software_changes into master

This MR is corresponding to this issue https://git.xfel.eu/calibration/planning/-/issues/143

Description

As there's a new software version for Jungfrau. These are needed changes to differentiate between old and new RAW data and read the correct gain_setting and gain_mode from the RUN source

  1. Adding new Jungfrau settings and gain mode enums.
  2. Using enum meta to be able to check, to which enum the run settings.value belong.
  3. New _get_gain_mode_x functions based on the availability of the gainMode key.
  4. Updating the dark notebook with the new ENUMs as it validates the value for the gain modes of the 3 runs.
  5. Updating the correction notebook with the extra return from get_gain_mode function.
  6. New bias voltage key as well in the new software

How Has This Been Tested?

  • To be tested on the reference runs + the new JF version runs.

Relevant Documents (optional)

Types of changes

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

Checklist:

Reviewers

@kluyvert @schmidtp @danilevc @mramilli

Edited by Karim Ahmed

Merge request reports