Skip to content

[AGIPD][CORRECT] use np.nanmin and np.nanmax to avoid nans when modules are missing

Karim Ahmed requested to merge fix/agipd_correction_plot into master

Description

Thank you @schmidtp and @kluyvert

The main issue is that a module was missing and corrected meandata had nans for it. Hence, as we are using min and max without account for any nans, nans were resulted for the calculated histogram edges and the plot failed. This fix is to account for nans and avoiding it by using np.nanmin and np.nanmax as a missing data for a module is something normal.

How Has This Been Tested?

Relevant Documents (optional)

Screenshot_from_2024-05-01_13-17-35

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

Reviewers

@schmidtp @kluyvert

Edited by Karim Ahmed

Merge request reports