Skip to content

Commit

Permalink
Return an empty dict if physics package missing
Browse files Browse the repository at this point in the history
This is needed to work properly with `update_physics_package()`

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Jan 10, 2025
1 parent 883d0ae commit c5b9112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrdgui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c5b9112

Please sign in to comment.