Skip to content

Commit

Permalink
Used between to update donors_sel and acceptors_sel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit112192 committed Jan 11, 2024
1 parent 734314b commit b08f4c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ def __init__(self, universe,
if isinstance(between[0], str):
between = [between]

temp_between = np.unique(between)
self.donors_sel = " or ".join(temp_between)
self.acceptors_sel = " or ".join(temp_between)

between_ags = []
for group1, group2 in between:
between_ags.append(
Expand Down

0 comments on commit b08f4c0

Please sign in to comment.