Skip to content

Commit 44a83cc

Browse files
committed
Minor: Fix a Cython declaration in a Reaction method.
Although Atom is a subclass of Vertex, it adds an element attribute. This leads to more efficient Cython code (and quietens a warning in vscode).
1 parent c9df5b4 commit 44a83cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmgpy/reaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ def is_balanced(self):
14391439
from rmgpy.molecule.element import element_list
14401440
from rmgpy.molecule.fragment import CuttingLabel, Fragment
14411441

1442-
cython.declare(reactant_elements=dict, product_elements=dict, molecule=Graph, atom=Vertex, element=Element,
1442+
cython.declare(reactant_elements=dict, product_elements=dict, molecule=Molecule, atom=Atom, element=Element,
14431443
reactants_net_charge=cython.int, products_net_charge=cython.int)
14441444

14451445
reactant_elements = {}

0 commit comments

Comments
 (0)