Skip to content

Commit

Permalink
Merge pull request #2003 from jamesmkrieger/insty_tcl
Browse files Browse the repository at this point in the history
better 7 types check for writing tcl
  • Loading branch information
jamesmkrieger authored Nov 30, 2024
2 parents d6f0a04 + b6632cf commit 6c58384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 6c58384

Please sign in to comment.