From a4b1fca99bf08bfd228b96f2e082c6162a0ac019 Mon Sep 17 00:00:00 2001 From: aggreen Date: Tue, 31 Mar 2020 09:53:04 -0400 Subject: [PATCH] Calling incorrect multimer DistMap during complex contact map creation leads to attempting to create empty contact maps. Fixes #222. --- evcouplings/compare/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evcouplings/compare/protocol.py b/evcouplings/compare/protocol.py index d7a4c366..209af54e 100644 --- a/evcouplings/compare/protocol.py +++ b/evcouplings/compare/protocol.py @@ -302,7 +302,7 @@ def plot_complex_cm(ecs_i, ecs_j, ecs_inter, # Currently, we require at least one of the monomer # to have either ECs or distances in order to make a plot if ((ecs_i is None or ecs_i.empty) and d_intra_i is None and d_multimer_i is None) \ - or ((ecs_j is None or ecs_j.empty) and d_intra_j is None and d_multimer_i is None): + or ((ecs_j is None or ecs_j.empty) and d_intra_j is None and d_multimer_j is None): return False fig = plt.figure(figsize=(8, 8))