Skip to content

[AGIPD][CORRECT] FIX : Remove pc_bools flag condition from gain_correction

Karim Ahmed requested to merge fix/remove_pc_bools_condition_AGIPD_CORRECT into master
  • gain_correction() function is not only doing PC gain corrections.
  • Adding if any(agipd_corr.pc_bools): for executing gain_correction() doesn't make sense.

Description

Adding the conditional flag in the notebook is wrong and it can produce wrong data. And it adds to the mess of agipdlib.py non transparent correction functions.

This was lately added in the last release.

How Has This Been Tested?

Relevant Documents (optional)

Types of changes

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

Checklist:

Reviewers

@calibration

Edited by Karim Ahmed

Merge request reports