Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Jan 14, 2025
1 parent 226f2b4 commit d6cefcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biotite/structure/tm.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def _mask_by_d0_threshold(fixed_ca_coord, mobile_ca_coord, reference_length):
"""
mask = distance(fixed_ca_coord, mobile_ca_coord) < _d0(reference_length)
if not np.any(mask):
raise ValueError("No anchors found")
raise ValueError("No anchors found, the structures are too dissimilar")
return mask


Expand Down

0 comments on commit d6cefcd

Please sign in to comment.