Skip to content

Commit 2a164df

Browse files
authored
Release 0.1.18
Merge pull request #55 from PEtab-dev/release_0.1.18
2 parents 4316416 + e4733ad commit 2a164df

21 files changed

+221
-339
lines changed

.readthedocs.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
sphinx:
7+
configuration: doc/conf.py
8+
fail_on_warning: true
9+
10+
11+
python:
12+
version: 3.8
13+
install:
14+
- method: pip
15+
path: .
16+
extra_requirements:
17+
- doc

.rtd_pip_reqs.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## 0.1 series
44

5+
### 0.1.18
6+
7+
* Fixed various documentation issues
8+
* Parameter mapping: Added option to ignore time-point specific
9+
noiseParameters (#51)
10+
511
### 0.1.17
612

713
* Updated package URL

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![CI tests](https://github.com/PEtab-dev/libpetab-python/workflows/CI%20tests/badge.svg)
1+
[![CI](https://github.com/PEtab-dev/libpetab-python/actions/workflows/ci_tests.yml/badge.svg?branch=master)](https://github.com/PEtab-dev/libpetab-python/actions/workflows/ci_tests.yml)
22
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fd7dd5cee68e449983be5c43f230c7f3)](https://www.codacy.com/gh/PEtab-dev/libpetab-python)
33
[![codecov](https://codecov.io/gh/PEtab-dev/libpetab-python/branch/master/graph/badge.svg)](https://codecov.io/gh/PEtab-dev/libpetab-python)
44
[![PyPI version](https://badge.fury.io/py/petab.svg)](https://badge.fury.io/py/petab)
@@ -34,16 +34,18 @@ Development versions of the PEtab library can be installed using
3434
When setting up a new parameter estimation problem, the most useful tools will
3535
be:
3636

37-
- The **PEtab validator**, which is now automatically installed using Python
38-
entrypoints to be available as a shell command from anywhere called
37+
- The [PEtab validator](https://petab.readthedocs.io/projects/libpetab-python/en/latest/example/example_petablint.html),
38+
which is automatically installed using Python
39+
entrypoints to be available as a shell command from anywhere, called
3940
`petablint`
4041

41-
- `petab.create_parameter_df` to create the parameter table, once you
42-
have set up the model, condition table, observable table and measurement
43-
table
42+
- [`petab.create_parameter_df`](https://petab.readthedocs.io/projects/libpetab-python/en/latest/build/_autosummary/petab.parameters.html#petab.parameters.create_parameter_df)
43+
to create the parameter table, once you have set up the model,
44+
condition table, observable table and measurement table
4445

45-
- `petab.create_combine_archive` to create a
46-
[COMBINE Archive](https://combinearchive.org/index/) from PEtab files
46+
- [`petab.create_combine_archive`](https://petab.readthedocs.io/projects/libpetab-python/en/latest/build/_autosummary/petab.core.html#petab.core.create_combine_archive)
47+
to create a [COMBINE Archive](https://combinearchive.org/index/) from PEtab
48+
files
4749

4850
## Examples
4951

doc/conf.py

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,30 @@
44
# list see the documentation:
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
66

7+
import os
8+
import subprocess
9+
import sys
10+
import warnings
11+
712
# -- Path setup --------------------------------------------------------------
813

914
# If extensions (or modules to document with autodoc) are in another directory,
1015
# add these directories to sys.path here. If the directory is relative to the
1116
# documentation root, use os.path.abspath to make it absolute, like shown here.
1217
#
13-
import os
14-
import sys
1518
sys.path.insert(0, os.path.abspath('..'))
1619

1720
# -- Project information -----------------------------------------------------
1821

19-
project = 'PEtab'
20-
copyright = '2018-2021, the PEtab developers'
22+
project = 'libpetab-python'
23+
copyright = '2018, the PEtab developers'
2124
author = 'PEtab developers'
2225

2326
# The full version, including alpha/beta/rc tags
2427
release = 'latest'
2528

2629
# -- Custom pre-build --------------------------------------------------------
2730

28-
import subprocess
2931

3032
subprocess.run(['python', 'md2rst.py'])
3133

@@ -37,19 +39,33 @@
3739
extensions = [
3840
'sphinx.ext.napoleon',
3941
'sphinx.ext.autodoc',
40-
'recommonmark',
4142
'sphinx.ext.autosummary',
43+
'sphinx.ext.intersphinx',
44+
'sphinx.ext.viewcode',
45+
'recommonmark',
4246
'sphinx_markdown_tables',
4347
'nbsphinx',
4448
]
4549

50+
intersphinx_mapping = {
51+
'pandas': ('https://pandas.pydata.org/docs/', None),
52+
'numpy': ('https://numpy.org/devdocs/', None),
53+
'sympy': ('https://docs.sympy.org/latest/', None),
54+
'python': ('https://docs.python.org/3', None),
55+
}
56+
4657
# Add any paths that contain templates here, relative to this directory.
4758
templates_path = ['_templates']
4859

4960
# List of patterns, relative to source directory, that match files and
5061
# directories to ignore when looking for source files.
5162
# This pattern also affects html_static_path and html_extra_path.
52-
exclude_patterns = ['build/doctrees', 'build/html']
63+
exclude_patterns = [
64+
'build/doctrees',
65+
'build/html',
66+
'**.ipynb_checkpoints',
67+
'logo/LICENSE.md',
68+
]
5369

5470
master_doc = 'index'
5571

@@ -72,14 +88,21 @@
7288
'.md': 'markdown',
7389
}
7490

91+
# ignore numpy warnings
92+
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
93+
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
94+
# ignore recommonmark warnings
95+
# https://github.com/readthedocs/recommonmark/issues/177
96+
warnings.filterwarnings("ignore",
97+
message="Container node skipped: type=document")
98+
7599
# -- Options for HTML output -------------------------------------------------
76100

77101
# The theme to use for HTML and HTML Help pages. See the documentation for
78102
# a list of builtin themes.
79103
#
80104
html_theme = 'sphinx_rtd_theme'
81-
def setup(app):
82-
app.add_stylesheet('custom.css')
105+
83106
# Add any paths that contain custom static files (such as style sheets) here,
84107
# relative to this directory. They are copied after the builtin static files,
85108
# so a file named "default.css" will overwrite the builtin "default.css".
@@ -94,3 +117,14 @@ def setup(app):
94117
}
95118

96119
html_logo = 'logo/PEtab.png'
120+
121+
122+
def skip_some_objects(app, what, name, obj, skip, options):
123+
"""Exclude some objects from the documentation"""
124+
if getattr(obj, '__module__', None) == 'collections':
125+
return True
126+
127+
128+
def setup(app):
129+
"""Sphinx setup"""
130+
app.connect('autodoc-skip-member', skip_some_objects)

0 commit comments

Comments
 (0)