We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9096f4 commit e249928Copy full SHA for e249928
CodeEntropy/group_molecules.py
@@ -98,7 +98,9 @@ def _by_molecules(self, universe):
98
# atom names as molecule_j, then index i is added to group j
99
# The index of molecule_j is the group key, the keys are
100
# all integers, but may not be consecutive numbers.
101
- if number_atoms_i == number_atoms_j and (names_i == names_j).all:
+ if number_atoms_i == number_atoms_j and all(
102
+ i == j for i, j in zip(names_i, names_j)
103
+ ):
104
if molecule_j in molecule_groups.keys():
105
molecule_groups[molecule_j].append(molecule_i)
106
else:
0 commit comments