From c5b9112ddf772c0071592d25d51596b33f4d3231 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Thu, 9 Jan 2025 19:28:24 -0600 Subject: [PATCH] Return an empty dict if physics package missing This is needed to work properly with `update_physics_package()` Signed-off-by: Patrick Avery --- hexrdgui/hexrd_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrdgui/hexrd_config.py b/hexrdgui/hexrd_config.py index e377bc091..40f45011f 100644 --- a/hexrdgui/hexrd_config.py +++ b/hexrdgui/hexrd_config.py @@ -3049,7 +3049,7 @@ def apply_absorption_correction(self, v): @property def physics_package_dictified(self): if not self.has_physics_package: - return None + return {} return self.physics_package.serialize()