Skip to content

Commit

Permalink
[Doc] Include all Python classes/functions in Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed May 30, 2022
1 parent f3dabbf commit bbcdabe
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 9 deletions.
6 changes: 0 additions & 6 deletions doc/sphinx/cython/importing.rst
Expand Up @@ -44,9 +44,3 @@ Representing Multiple States
----------------------------

.. autoclass:: SolutionArray

Utility Functions
-----------------

.. autofunction:: add_directory
.. autofunction:: get_data_directories
1 change: 1 addition & 0 deletions doc/sphinx/cython/index.rst
Expand Up @@ -15,3 +15,4 @@ Contents:
zerodim
onedim
constants
utilities
11 changes: 11 additions & 0 deletions doc/sphinx/cython/kinetics.rst
Expand Up @@ -38,6 +38,17 @@ FalloffReaction
.. autoclass:: FalloffReaction
:no-undoc-members:

ChemicallyActivatedReaction
^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ChemicallyActivatedReaction
:no-undoc-members:

CustomReaction
^^^^^^^^^^^^^^
.. autoclass:: CustomReaction
:no-undoc-members:


Reaction Rates
--------------

Expand Down
4 changes: 4 additions & 0 deletions doc/sphinx/cython/onedim.rst
Expand Up @@ -27,6 +27,10 @@ CounterflowPremixedFlame
^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: CounterflowPremixedFlame

CounterflowTwinPremixedFlame
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: CounterflowTwinPremixedFlame

ImpingingJet
^^^^^^^^^^^^
.. autoclass:: ImpingingJet
Expand Down
58 changes: 58 additions & 0 deletions doc/sphinx/cython/utilities.rst
@@ -0,0 +1,58 @@
.. py:currentmodule:: cantera
Utilities
=========

.. contents::
:local:

YAML Output
-----------

YamlWriter
^^^^^^^^^^
.. autoclass:: YamlWriter

Unit Conversions
----------------

UnitSystem
^^^^^^^^^^
.. autoclass:: UnitSystem
:no-undoc-members:

Units
^^^^^
.. autoclass:: Units
:no-undoc-members:


Global Functions
----------------

.. autofunction:: add_directory
.. autofunction:: get_data_directories
.. autofunction:: import_phases
.. autofunction:: appdelete
.. autofunction:: use_sparse

.. autofunction:: make_deprecation_warnings_fatal
.. autofunction:: suppress_deprecation_warnings
.. autofunction:: suppress_thermo_warnings
.. autofunction:: use_legacy_rate_constants
.. autofunction:: debug_mode_enabled
.. autofunction:: add_module_directory

Exceptions
----------

CanteraError
^^^^^^^^^^^^
.. autoclass:: CanteraError
:no-undoc-members:


ThermoModelMethodError
^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: ThermoModelMethodError
:no-undoc-members:
2 changes: 2 additions & 0 deletions doc/sphinx/cython/zerodim.rst
Expand Up @@ -13,6 +13,8 @@ Defining Functions

.. autoclass:: Func1

.. autoclass:: TabulatedFunction

Base Classes
------------

Expand Down
3 changes: 2 additions & 1 deletion interfaces/cython/cantera/base.pyx
Expand Up @@ -337,7 +337,8 @@ cdef class _SolutionBase:
output file
:param units:
A `UnitSystem` object or dictionary of the units to be used for
each dimension. See `YamlWriter.output_units`.
each dimension.
See `YamlWriter.output_units <cantera.YamlWriter.output_units>`.
:param precision:
For output floating point values, the maximum number of digits to
the right of the decimal point. The default is 15 digits.
Expand Down
4 changes: 2 additions & 2 deletions interfaces/cython/cantera/kinetics.pyx
Expand Up @@ -370,7 +370,7 @@ cdef class Kinetics(_SolutionBase):
The computed values include all temperature-dependent and pressure-dependent
contributions. By default, third-body concentrations are only considered if
they are part of the reaction rate definition; for a legacy implementation that
includes third-body concentrations @see Cantera::use_legacy_rate_constants().
includes third-body concentrations, see `use_legacy_rate_constants`.
"""
def __get__(self):
return get_reaction_array(self, kin_getFwdRateConstants)
Expand All @@ -382,7 +382,7 @@ cdef class Kinetics(_SolutionBase):
The computed values include all temperature-dependent and pressure-dependent
contributions. By default, third-body concentrations are only considered if
they are part of the reaction rate definition; for a legacy implementation that
includes third-body concentrations @see Cantera::use_legacy_rate_constants().
includes third-body concentrations, see `use_legacy_rate_constants`.
"""
def __get__(self):
return get_reaction_array(self, kin_getRevRateConstants)
Expand Down

0 comments on commit bbcdabe

Please sign in to comment.