From 27f168c0294518c9b3c2c22a882d656d8b83374a Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Mon, 6 Nov 2023 15:25:34 +0000 Subject: [PATCH] Update removed datablock module and warning (#665) This attempted to import some code from experiment_list before printing the warning, but used an incorrect import path. This didn't get tested because this was added in the commit otherwise removing datablock completely. --- newsfragments/665.bugfix | 1 + src/dxtbx/datablock.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 newsfragments/665.bugfix diff --git a/newsfragments/665.bugfix b/newsfragments/665.bugfix new file mode 100644 index 000000000..a0a44e441 --- /dev/null +++ b/newsfragments/665.bugfix @@ -0,0 +1 @@ +Importing the (deprecated and removed) ``dxtbx.datablock`` module failed to display warning properly. diff --git a/src/dxtbx/datablock.py b/src/dxtbx/datablock.py index 436f52ea3..ea8d8fc3e 100644 --- a/src/dxtbx/datablock.py +++ b/src/dxtbx/datablock.py @@ -2,7 +2,7 @@ import warnings -from dxtbx.experiment_list import ( +from dxtbx.model.experiment_list import ( BeamComparison, DetectorComparison, FormatChecker,