Skip to content

Commit

Permalink
Fix potential crash in indexing max cell estimation if all spots are …
Browse files Browse the repository at this point in the history
…ice ring resolution (dials#2699)
  • Loading branch information
jbeilstenedmands authored Jul 12, 2024
1 parent 1848e04 commit 153f5a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions newsfragments/2699.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``dials.index``: Fix potential crash in max_cell estimation when all ice ring spots
4 changes: 4 additions & 0 deletions src/dials/algorithms/indexing/max_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def find_max_cell(
logger.debug(
"Rejecting %i reflections at ice ring resolution", ice_sel.count(True)
)
if not reflections.size():
raise DialsIndexError(
"No spots left for max cell analysis after ice-ring filtering"
)

# need bounding box in reflections to find overlaps; this is not there if
# spots are from XDS (for example)
Expand Down

0 comments on commit 153f5a7

Please sign in to comment.