From 74fd1f1a132ccc9e0b456f6a5fbc55adaeb4351e Mon Sep 17 00:00:00 2001 From: David Waterman Date: Fri, 16 Aug 2024 14:13:06 +0100 Subject: [PATCH] `FormatSMVRigakuSaturnNoTS` pedestal fix (#746) Fix position of enclosing brackets to remove bug in getting the image pedestal. --- newsfragments/746.bugfix | 1 + src/dxtbx/format/FormatSMVRigakuSaturnNoTS.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 newsfragments/746.bugfix diff --git a/newsfragments/746.bugfix b/newsfragments/746.bugfix new file mode 100644 index 000000000..4eddc21db --- /dev/null +++ b/newsfragments/746.bugfix @@ -0,0 +1 @@ +``FormatSMVRigakuSaturnNoTS``: Fix a bug in reading the image pedestal from headers. diff --git a/src/dxtbx/format/FormatSMVRigakuSaturnNoTS.py b/src/dxtbx/format/FormatSMVRigakuSaturnNoTS.py index 92fae506e..b0eb68bb3 100644 --- a/src/dxtbx/format/FormatSMVRigakuSaturnNoTS.py +++ b/src/dxtbx/format/FormatSMVRigakuSaturnNoTS.py @@ -157,7 +157,7 @@ def _detector(self): pixel_size, image_size, (min_trusted_value, max_trusted_value), - pedestal=float(self._header_dictionary.get("IMAGE_PEDESTAL"), 0), + pedestal=float(self._header_dictionary.get("IMAGE_PEDESTAL", 0)), ) def _beam(self):