diff --git a/package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py b/package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py index e0597e2c3d2..63b3e7ac7af 100644 --- a/package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py +++ b/package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py @@ -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(