From 6fc6e6f3eef66adcdc550a9f78e9dc7ad6249f9f Mon Sep 17 00:00:00 2001 From: Gerardo Tauriello <gerardo.tauriello@unibas.ch> Date: Fri, 27 Apr 2018 19:29:01 +0200 Subject: [PATCH] Fix: consistency check can only pass if all alignments ok --- actions/ost-compare-structures | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/ost-compare-structures b/actions/ost-compare-structures index 8364be451..7ffef2083 100644 --- a/actions/ost-compare-structures +++ b/actions/ost-compare-structures @@ -455,7 +455,8 @@ def _CheckConsistency(alignments, log_error): for alignment in alignments: ref_chain = Renumber(alignment.GetSequence(0)).CreateFullView() mdl_chain = Renumber(alignment.GetSequence(1)).CreateFullView() - is_cons = ResidueNamesMatch(ref_chain, mdl_chain, log_error) + new_is_cons = ResidueNamesMatch(ref_chain, mdl_chain, log_error) + is_cons = is_cons and new_is_cons return is_cons -- GitLab