Skip to content

fix/shmiadzu_correction_with_less_expected_images

Karim Ahmed requested to merge fix/shimadzu_correct_plot into master

Description

When the correct_images are less than 5 the subplots return an ax array which has smaller dimension than expected. It would be optimal to fix it from the main code with https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.subplots.html squeeze=False flag as @kluyvert pointed.

This is a fix for this issue which was realized in the DOC while some SPB runs where being corrected.

https://git.xfel.eu/calibration/pycalibration/-/issues/107

This is HOTFIXED in production.

How Has This Been Tested?

Running in production

Relevant Documents (optional)

Types of changes

Checklist:

Reviewers

@kluyvert @schmidtp

Merge request reports