Skip to content

Commit fe9bcff

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 5cca9bb commit fe9bcff

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
@@ -1189,7 +1189,7 @@ def is_balanced(self):
11891189
from rmgpy.molecule.element import element_list
11901190
from rmgpy.molecule.fragment import CuttingLabel, Fragment
11911191

1192-
cython.declare(reactant_elements=dict, product_elements=dict, molecule=Graph, atom=Vertex, element=Element)
1192+
cython.declare(reactant_elements=dict, product_elements=dict, molecule=Molecule, atom=Atom, element=Element)
11931193

11941194
reactant_elements = {}
11951195
product_elements = {}

0 commit comments

Comments
 (0)