Skip to content

Commit

Permalink
Merge pull request #164 from bluescarni/pr/heyoka_updates
Browse files Browse the repository at this point in the history
Updates for changes in the dtens API
  • Loading branch information
bluescarni authored Jan 21, 2024
2 parents 2816f23 + c580a54 commit 7511ffb
Show file tree
Hide file tree
Showing 17 changed files with 463 additions and 104 deletions.
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -nW --keep-going -j4
SPHINXOPTS ?= -nW --keep-going
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
Expand Down
29 changes: 29 additions & 0 deletions doc/_templates/custom-class-template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:members:
:special-members: __init__

{% block methods %}
{% if methods %}
.. rubric:: {{ _('Methods') }}

.. autosummary::
{% for item in methods %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}

.. autosummary::
{% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
6 changes: 6 additions & 0 deletions doc/_templates/custom-enum-template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}

22 changes: 22 additions & 0 deletions doc/api_exsys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,30 @@ Expression system

.. currentmodule:: heyoka

Classes
-------

.. autosummary::
:toctree: autosummary_generated
:template: custom-class-template.rst

expression
dtens

Functions
---------

.. autosummary::
:toctree: autosummary_generated

make_vars
diff_tensors

Enums
-----

.. autosummary::
:toctree: autosummary_generated
:template: custom-enum-template.rst

diff_args
4 changes: 3 additions & 1 deletion doc/breaking_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ input arguments, turned out to be in practice confusing and a source of bugs.
The affected APIs include:

- :ref:`compiled functions <cfunc_tut>`, which now require the list of input
variables to be always supplied by the user.
variables to be always supplied by the user;
- :func:`~heyoka.diff_tensors()`, which now requires an explicit list of differentiation
arguments to be always provided by the user.

The tutorials and the documentation have been updated accordingly.

Expand Down
4 changes: 4 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ New
Changes
~~~~~~~

- **BREAKING**: it is now mandatory to supply a list of differentiation
arguments to :func:`~heyoka.diff_tensors()`
(`#164 <https://github.com/bluescarni/heyoka.py/pull/164>`__).
This is a :ref:`breaking change <bchanges_4_0_0>`.
- **BREAKING**: :ref:`compiled functions <cfunc_tut>` now require
the list of input variables to be always supplied by the user
(`#162 <https://github.com/bluescarni/heyoka.py/pull/162>`__).
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx.ext.intersphinx",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
]

intersphinx_mapping = {
Expand Down
2 changes: 1 addition & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ examples_others
:maxdepth: 2
:caption: API reference
api_integrators
api_exsys
api_integrators
api_lagham
```
Loading

0 comments on commit 7511ffb

Please sign in to comment.