Skip to content

Commit

Permalink
small fix to prevent a crash because of zero unit cell volume
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Jun 11, 2024
1 parent 6e2190d commit 644c922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structurefinder/strf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ def search_cell_idlist(self, cell: list) -> list:
"""
try:
volume = misc.vol_unitcell(*cell)
if volume < 0:
if volume < 0.01:
return []
except ValueError:
return []
Expand Down

0 comments on commit 644c922

Please sign in to comment.