From a041a97c5abee43e3bb692c85f5a796e817a07c7 Mon Sep 17 00:00:00 2001 From: David Hammer <dhammer@mailbox.org> Date: Wed, 17 Nov 2021 15:54:13 +0100 Subject: [PATCH] Fix typo, formatting --- src/calng/AgipdCorrection.py | 8 ++++++-- src/calng/agipd_gpu.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/calng/AgipdCorrection.py b/src/calng/AgipdCorrection.py index 2199c9da..e4d4be15 100644 --- a/src/calng/AgipdCorrection.py +++ b/src/calng/AgipdCorrection.py @@ -500,10 +500,14 @@ class AgipdCorrection(BaseCorrection): ): self.log_status_info("Updating bad pixel maps based on subset specified") if any( - update.get(f"corrections.badPixels.subsetToUse.{field.name}", default=False) + update.get( + f"corrections.badPixels.subsetToUse.{field.name}", default=False + ) for field in BadPixelValues ): - self.log_status_info("Some fields reenabled, reloading cached bad pixel constants") + self.log_status_info( + "Some fields reenabled, reloading cached bad pixel constants" + ) with self.calcat_friend.cached_constants_lock: for ( constant, diff --git a/src/calng/agipd_gpu.py b/src/calng/agipd_gpu.py index aa0a4519..ff212c6b 100644 --- a/src/calng/agipd_gpu.py +++ b/src/calng/agipd_gpu.py @@ -312,7 +312,7 @@ class BadPixelValues(enum.IntFlag): NOISE_OUT_OF_THRESHOLD = 2 ** 1 OFFSET_NOISE_EVAL_ERROR = 2 ** 2 NO_DARK_DATA = 2 ** 3 - CI_GAIN_OF_OF_THRESHOLD = 2 ** 4 + CI_GAIN_OUT_OF_THRESHOLD = 2 ** 4 CI_LINEAR_DEVIATION = 2 ** 5 CI_EVAL_ERROR = 2 ** 6 FF_GAIN_EVAL_ERROR = 2 ** 7 -- GitLab