Skip to content

Commit

Permalink
fix indexing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 20, 2024
1 parent 43d427a commit be9b1d7
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.nonzero(np.array(aa_pairs)==lookup)[0]][0][2:][sources.index(source)][0]
data_results = data[np.nonzero(np.array(aa_pairs)==lookup)[0]][0][2:][sources.index(source)]
except TypeError:
raise TypeError('Please replace non-standard names of residues with standard names.')

Expand Down

0 comments on commit be9b1d7

Please sign in to comment.