Skip to content
Snippets Groups Projects

Extend slopesFF with last usable cell

Merged Karim Ahmed requested to merge fix/expand_FF_with_last_useable_cell into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -956,7 +956,8 @@ class AgipdCorrections:
if self.corr_bools.get("xray_corr"):
bpixels |= cons_data["BadPixelsFF"].astype(np.uint32)[..., :bpixels.shape[2], None] # noqa
slopesFF = cons_data["SlopesFF"]
# This could be used for backward compatability for very old FF constants
# This could be used for backward compatibility
# for very old SlopesFF constants
if len(slopesFF.shape) == 4:
slopesFF = slopesFF[..., 0]
# This is for backward compatability for old FF constants
Loading