[AGIPD][CORRECT] use np.nanmin and np.nanmax to avoid nans when modules are missing
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)
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Edited by Karim Ahmed
