Skip to content

Commit

Permalink
[Doc] Clarify rationale for ArrheniusRateBase._cinit
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Mar 27, 2022
1 parent 69836e1 commit 69aaf8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interfaces/cython/cantera/reaction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ cdef class ArrheniusRateBase(ReactionRate):
def _cinit(self, input_data, **kwargs):
"""
Helper function called by __cinit__. The method is used as a uniform interface
for object construction. A separate method is necessary as Cython does not
support overloading of special methods such as __cinit__.
for object construction. A separate method is necessary as default argument
values to __cinit__ defined in derived classes are not available in the base
class's __cinit__ (which gets called first).
"""
if self._reaction_rate_type is None:
raise TypeError(
Expand Down

0 comments on commit 69aaf8f

Please sign in to comment.