Closed dagewa closed 1 year ago
Hi @dagewa, XFEL CI runs this test:
libtbx.python ../../modules/xfel_regression/test/command_line/tst_small_cell_process.py
Which passes on master and on this branch. I'm trying to figure out a better diff program that will help me review the changes easier. I think the white space changes are making the diff hard to follow.
This PR splits out the lattice determination part of
small_cell_index_detail
into a new function,small_cell_index_lattice_detail
, so that this could be called bydials.index
. This is necessary becausedials.index
loads experiments withcheck_format=False
, so fails on the subsequent parts of the original function where the pixel data are accessed.During the refactor, a certain amount of tidying-up was also done, such as reducing nested indents.
This PR has been tested to give the same results as
main
on this test case:Before a
small_cell
indexer is added to DIALS, @phyy-nx noted that it may be worth moving this code toserialtbx
, to avoid adding a new DIALS --> cctbx.xfel dependency.