From 4aad75f5a0c9cdf73427c6fe7d70d8ad4566bd7b Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Fri, 30 Apr 2021 13:16:50 +0200 Subject: [PATCH] python3: fix TypeError: '<' not supported between instances of 'dict' and 'dict' same as commit 69f90c4664b7fbc3a342299b236add1288a476fb --- modules/mol/alg/pymod/qsscoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mol/alg/pymod/qsscoring.py b/modules/mol/alg/pymod/qsscoring.py index 76af5da5e..b47aa4e76 100644 --- a/modules/mol/alg/pymod/qsscoring.py +++ b/modules/mol/alg/pymod/qsscoring.py @@ -1969,7 +1969,7 @@ def _GetChainMapping(ent_1, ent_2, symm_1, symm_2, chem_mapping, LogWarning('Mapping number estimation was wrong') # sanity check # return best (lowest RMSD) mapping - mapping = min(full_mappings)[1] + mapping = min(full_mappings, key=lambda x: x[0])[1] LogWarning('Extensive search used for mapping detection (fallback). This ' + \ 'approach has known limitations. Check mapping manually: %s' \ -- GitLab