Skip to content
Snippets Groups Projects
Commit a041a97c authored by David Hammer's avatar David Hammer
Browse files

Fix typo, formatting

parent 9e8097bf
No related branches found
No related tags found
2 merge requests!12Snapshot: field test deployed version as of end of run 202201,!3Base correction device, CalCat interaction, DSSC and AGIPD devices
...@@ -500,10 +500,14 @@ class AgipdCorrection(BaseCorrection): ...@@ -500,10 +500,14 @@ class AgipdCorrection(BaseCorrection):
): ):
self.log_status_info("Updating bad pixel maps based on subset specified") self.log_status_info("Updating bad pixel maps based on subset specified")
if any( 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 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: with self.calcat_friend.cached_constants_lock:
for ( for (
constant, constant,
......
...@@ -312,7 +312,7 @@ class BadPixelValues(enum.IntFlag): ...@@ -312,7 +312,7 @@ class BadPixelValues(enum.IntFlag):
NOISE_OUT_OF_THRESHOLD = 2 ** 1 NOISE_OUT_OF_THRESHOLD = 2 ** 1
OFFSET_NOISE_EVAL_ERROR = 2 ** 2 OFFSET_NOISE_EVAL_ERROR = 2 ** 2
NO_DARK_DATA = 2 ** 3 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_LINEAR_DEVIATION = 2 ** 5
CI_EVAL_ERROR = 2 ** 6 CI_EVAL_ERROR = 2 ** 6
FF_GAIN_EVAL_ERROR = 2 ** 7 FF_GAIN_EVAL_ERROR = 2 ** 7
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment