From d6cefcdb43e0da4ed4aecf0b7c8bc45e4dfcfecc Mon Sep 17 00:00:00 2001 From: Patrick Kunzmann Date: Tue, 14 Jan 2025 09:59:35 +0100 Subject: [PATCH] Improve error message --- src/biotite/structure/tm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/biotite/structure/tm.py b/src/biotite/structure/tm.py index 508af70a3..f6f52c899 100644 --- a/src/biotite/structure/tm.py +++ b/src/biotite/structure/tm.py @@ -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