Skip to content

Fix/shmiadzu correction few images plot

Karim Ahmed requested to merge fix/shmiadzu_correction_few_images_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?

Relevant Documents (optional)

Types of changes

Checklist:

Reviewers

Merge request reports