Skip to content

Commit

Permalink
reformatted code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiCheng45 committed Jan 25, 2024
1 parent e97d3e3 commit 1934a90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MDANSE/Src/MDANSE/Chemistry/ChemicalEntity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ def add_chemical_entity(self, chemical_entity: _ChemicalEntity) -> None:

# add the atoms to the rdkit molecule, ghost atoms are
# never added to the rdkit molecule object
atm_num = ATOMS_DATABASE[at.symbol]['atomic_number']
atm_num = ATOMS_DATABASE[at.symbol]["atomic_number"]
rdkit_atm = Chem.Atom(atm_num)

# makes sure that rdkit doesn't add extra hydrogens
Expand Down Expand Up @@ -2512,7 +2512,8 @@ def get_substructure_matches(self, smarts: list[str]):
substruct_set = set()
for smart in smarts:
matches = self.rdkit_mol.GetSubstructMatches(
Chem.MolFromSmarts(smart), maxMatches=1000000)
Chem.MolFromSmarts(smart), maxMatches=1000000
)
for match in matches:
substruct_set.update(match)
return substruct_set
Expand Down

0 comments on commit 1934a90

Please sign in to comment.