Skip to content

Commit

Permalink
Update removed datablock module and warning (cctbx#665)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ndevenish authored Nov 6, 2023
1 parent 4c59ebc commit 27f168c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/665.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Importing the (deprecated and removed) ``dxtbx.datablock`` module failed to display warning properly.
2 changes: 1 addition & 1 deletion src/dxtbx/datablock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import warnings

from dxtbx.experiment_list import (
from dxtbx.model.experiment_list import (
BeamComparison,
DetectorComparison,
FormatChecker,
Expand Down

0 comments on commit 27f168c

Please sign in to comment.