From 6751854901ba369ada390733f1ea29b9f7bc6716 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Mon, 25 Nov 2024 13:41:18 +0100 Subject: [PATCH] better 7 types check for writing tcl --- prody/proteins/interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prody/proteins/interactions.py b/prody/proteins/interactions.py index 1e05157ec..73d3bfc8f 100644 --- a/prody/proteins/interactions.py +++ b/prody/proteins/interactions.py @@ -2609,7 +2609,7 @@ def TCLforSingleInteraction(interaction, color='blue', tcl_file=tcl_file): tcl_file.write('mol addrep 0 \n') except: LOGGER.info("There was a problem.") - if len(interactions) == 7: + if len(interactions) == 7 and isinstance(interactions[0][0], list): # For all seven types of interactions at once # HBs_calculations, SBs_calculations, SameChargeResidues, Pi_stacking, Pi_cation, Hydroph_calculations, Disulfide Bonds colors = ['blue', 'yellow', 'red', 'green', 'orange', 'silver', 'black']