Skip to content

Commit

Permalink
better indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 20, 2024
1 parent 692c82b commit 62a753f
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 @@ -228,7 +228,7 @@ def get_energy(pair, source):
lookup = pair[0]+pair[1]

try:
data_results = data[np.where(np.array(aa_pairs)==lookup)[0]][0][2:][np.where(np.array(sources)==source)][0]
data_results = data[np.nonzero(np.array(aa_pairs)==lookup)[0]][0][2:][sources.index(source)][0]
except TypeError:
raise TypeError('Please replace non-standard names of residues with standard names.')

Expand Down

0 comments on commit 62a753f

Please sign in to comment.