Skip to content

Commit

Permalink
Fix rmgpy/reaction.py
Browse files Browse the repository at this point in the history
Since SurfaceArrhenius is a subclass of Arrhenius this elif
will never be true. SurfaceArrhenius is dealt with on line 292 above.

Co-authored-by: Sevy Harris <[email protected]>
  • Loading branch information
rwest and sevyharris authored Nov 27, 2024
1 parent 75208f4 commit c281e8f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rmgpy/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ def to_cantera(self, species_list=None, use_chemkin_identifier=False):
reactants=ct_reactants, products=ct_products, rate=rate
)

elif isinstance(self.kinetics, SurfaceArrhenius):
rate = self.kinetics.to_cantera_kinetics()
ct_reaction = ct.InterfaceReaction(equation=str(self), rate=rate)

elif isinstance(self.kinetics, StickingCoefficient):
rate = self.kinetics.to_cantera_kinetics()
Expand Down

0 comments on commit c281e8f

Please sign in to comment.