Skip to content

Commit 4360836

Browse files
dweindldilpath
andauthored
Doc: fix formatting / missing type annotations (#292)
Document, fix formatting, fix missing type annotations --------- Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
1 parent eeb3dcd commit 4360836

35 files changed

Lines changed: 99 additions & 17 deletions

doc/modules.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
API Reference
22
=============
33

4-
.. automodule:: petab
5-
64
.. rubric:: Modules
75

86
.. autosummary::
97
:toctree: build/_autosummary
108
:recursive:
119

10+
petab
1211
petab.v1
1312
petab.v1.C
1413
petab.v1.calculate

petab/C.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Deprecated module. Use petab.v1.C instead."""
12
from petab import _deprecated_import_v1
23
from petab.v1.C import * # noqa: F403, F401, E402
34

petab/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
PEtab global
33
============
44
5+
.. warning::
6+
7+
All functions in here are deprecated. Use the respective functions from
8+
:mod:`petab.v1` instead.
9+
510
Attributes:
611
ENV_NUM_THREADS:
712
Name of environment variable to set number of threads or processes

petab/calculate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""Deprecated module for calculating residuals and log-likelihoods.
2+
3+
Use petab.v1.calculate instead."""
14
from petab import _deprecated_import_v1
25
from petab.v1.calculate import * # noqa: F403, F401, E402
36

petab/composite_problem.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""Deprecated module for composite problems.
2+
3+
Use petab.v1.composite_problem instead."""
14
from petab import _deprecated_import_v1
25
from petab.v1.composite_problem import * # noqa: F403, F401, E402
36

petab/conditions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""Deprecated module for condition tables.
2+
3+
Use petab.v1.conditions instead.
4+
"""
15
from petab import _deprecated_import_v1
26
from petab.v1.conditions import * # noqa: F403, F401, E402
37

petab/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""Deprecated module for PEtab core classes and functions.
2+
3+
Use petab.v1.core instead."""
14
from petab import _deprecated_import_v1
25
from petab.v1.core import * # noqa: F403, F401, E402
36

petab/lint.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""Deprecated module for linting PEtab files.
2+
3+
Use petab.v1.lint instead.
4+
"""
5+
16
from petab import _deprecated_import_v1
27
from petab.v1.lint import * # noqa: F403, F401, E402
38

petab/mapping.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""Deprecated module for mapping tables.
2+
3+
Use petab.v1.mapping instead."""
14
from petab import _deprecated_import_v1
25
from petab.v1.mapping import * # noqa: F403, F401, E402
36

petab/math/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""Deprecated module for math handling.
2+
3+
Use petab.v1.math instead."""
14
from petab import _deprecated_import_v1
25
from petab.v1.math import * # noqa: F403, F401, E402
36

0 commit comments

Comments
 (0)