Skip to content

Commit

Permalink
Fix NumPy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Aug 3, 2020
1 parent 97a531f commit 675eadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biotite/structure/basepairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ def _get_proximate_basepair_candidates(atom_array, cutoff = 4):

# Loop through the indices of potential partners
basepair_candidates = []
for candidate, partners in zip(np.argwhere(n_o_mask), indices):
for candidate, partners in zip(np.argwhere(n_o_mask)[:, 0], indices):
for partner in partners:
if partner == -1:
break
Expand Down

0 comments on commit 675eadc

Please sign in to comment.