Skip to content

Commit

Permalink
don't max out substructure matches at 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomart committed Dec 8, 2024
1 parent 06f61eb commit 6314793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meeko/molsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,8 @@ def find_pattern(self, smarts: str):
The substruct matches in the RDKit Mol for the given SMARTS.
"""
p = Chem.MolFromSmarts(smarts)
return self.mol.GetSubstructMatches(p)
nr_atoms = self.mol.GetNumAtoms()
return self.mol.GetSubstructMatches(p, maxMatches=nr_atoms)

def get_mol_name(self):
"""
Expand Down

0 comments on commit 6314793

Please sign in to comment.