index_assignment.method=local is broken when joint_index=True
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start with the failing path in modules/dials/src/dials/algorithms/indexing/assign_indices.py, especially the selection at line 145, and trace how joint indexing and local index assignment produce the reflection arrays. Reproduce using the commands and Rigaku_HyPix_Arc data in the issue, comparing with and without index_assignment.method=local. Done when the local joint-indexing command succeeds without the selection-size assertion.
Written by the indexing model from the issue text.
Description
When joint indexing multiple sweeps (i.e. one common orientation matrix for all sweeps), local indexing should work, but does not.
How to reproduce
dials.import `dials.data get -q Rigaku_HyPix_Arc`/CHNOS_*.rodhypix
dials.find_spots imported.expt
dials.index imported.expt strong.refl joint_index=True # works
dials.index imported.expt strong.refl joint_index=True index_assignment.method=local # fails
Error
File "/prog/dials-dev/modules/dials/src/dials/command_line/index.py", line 285, in run
indexed_experiments, indexed_reflections = index(
^^^^^^
File "/prog/dials-dev/modules/dials/src/dials/command_line/index.py", line 195, in index
indexed_experiments, indexed_reflections = _index_experiments(
^^^^^^^^^^^^^^^^^^^
File "/prog/dials-dev/modules/dials/src/dials/command_line/index.py", line 125, in _index_experiments
idxr.index()
File "/prog/dials-dev/modules/dials/src/dials/algorithms/indexing/indexer.py", line 552, in index
new_expts = self.find_lattices()
^^^^^^^^^^^^^^^^^^^^
File "/prog/dials-dev/modules/dials/src/dials/algorithms/indexing/lattice_search/__init__.py", line 148, in find_lattices
crystal_model, n_indexed = self.choose_best_orientation_matrix(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/prog/dials-dev/modules/dials/src/dials/algorithms/indexing/lattice_search/__init__.py", line 222, in choose_best_orientation_matrix
self.index_reflections(experiments, refl)
File "/prog/dials-dev/modules/dials/src/dials/algorithms/indexing/indexer.py", line 1003, in index_reflections
self._assign_indices(reflections, experiments, d_min=self.d_min)
File "/prog/dials-dev/modules/dials/src/dials/algorithms/indexing/assign_indices.py", line 145, in __call__
rlp_sel = rlps.select(cryst_sel)
^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Please report this error at https://github.com/dials/dials/issues or to [email protected]: scitbx Internal Error: /home/conda/feedstock_root/build_artifacts/cctbx-split_1746201864733/work/modules/cctbx_project/scitbx/array_family/selections.h(44): SCITBX_ASSERT(flags.size() == self.size()) failure.
- Dominant language
- Python
- Stars
- 107
- Forks
- 61
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 12
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dials/dials
-
Clear params.inputs in dials.indexPossibly taken @phyy-nx claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dials/dials#3361 · 1 comment ·
Maintainers usually reply within 1 day
-
dials.generate_mask silently ignores masking options when given only mask filesPossibly taken @CAOShurong claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
dials.reindex reference.file= refuses a reference in the enantiomorphic space group, contrary to help textPossibly taken @spmeisburger claimed this 3 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
search beam position failPossibly taken @mpks claimed this 3 days ago. Open
dials/dials#3352 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
A JSON chat answer blocks the backend event loop for the whole RAG runPossibly taken @NopeCharon claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainers usually reply within 1 day
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day