Skip to content

Commit 8cdb8ec

Browse files
committed
More docs
1 parent b139fdc commit 8cdb8ec

12 files changed

+287
-142
lines changed

docs/api/comp_model.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Compartmental Model
22
===================
33

4-
.. module:: icomo.comp_model
4+
.. module:: icomo
55

66
Defining a compartmental model
77
-------------------------------
@@ -10,3 +10,10 @@ Defining a compartmental model
1010
.. autoclass:: CompModel
1111
:exclude-members: y, dy, edges, __weakref__
1212
:members:
13+
14+
Helper functions
15+
----------------
16+
17+
.. autofunction:: erlang_kernel
18+
19+
.. autofunction:: delayed_copy_kernel

docs/api/diffrax_wrapper.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
Diffrax Wrapper
22
===============
33

4-
.. module:: icomo.diffrax_wrapper
4+
.. module:: icomo
5+
6+
These are helper functions that wrap some function from the diffrax module like the
7+
:meth:`diffrax.diffeqsolve` function. This is only done for convenience, to define
8+
some default values for the parameters of the function. Don't hesitate to directly the
9+
functions from the diffrax module if you need more flexibility.
10+
511

612
.. autofunction:: diffeqsolve
713

814
.. autofunction:: interpolate_func
15+
16+

docs/api/experimental.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Experimental Inference tools
2+
==================
3+
4+
The following tools are experimental and may change in future releases. They help
5+
with the Bayesian inference of the model parameters using the `PyMC <https://www.pymc
6+
.io/>`_ library.
7+
8+
.. module:: icomo.experimental
9+
10+
.. automodule:: icomo.experimental
11+
:imported-members:
12+
:members:
13+
:show-inheritance:

docs/api/jax2pytensor.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Transform Jax to Pytensor
2+
=========================
3+
4+
.. module:: icomo
5+
6+
.. autofunction:: icomo.jax2pytensor
7+

docs/api/tree_tools.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Tree tools
2+
==========
3+
4+
Some tools for working with python trees, useful for working with nested data structures.
5+
6+
.. module:: icomo
7+
8+
.. autofunction:: walk_tree
9+
10+
.. autofunction:: nested_indexing
11+
12+

docs/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ Getting started <example>
1515
:caption: API
1616
1717
api/comp_model
18+
api/jax2pytensor
1819
api/diffrax_wrapper
19-
api/references
20+
api/tree_tools
21+
api/experimental
22+
```
23+
24+
```{toctree}
2025
contributing
2126
```
2227

icomo/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
from importlib import metadata as importlib_metadata
66

77
from . import comp_model
8-
from .comp_model import (
9-
CompModel,
10-
erlang_kernel,
11-
)
8+
from .comp_model import CompModel, erlang_kernel, delayed_copy_kernel
129

1310
from .diffrax_wrapper import diffeqsolve, interpolate_func
1411

1512
from .jax2pytensor import jax2pytensor
1613

14+
from .tree_tools import nested_indexing, walk_tree
15+
1716
from . import experimental
1817

1918

0 commit comments

Comments
 (0)