Skip to content

Commit 9f22a6d

Browse files
authored
Merge pull request #227 from PEtab-dev/release_0.2.4
Release 0.2.4
2 parents 52d8ab1 + 82d4b2d commit 9f22a6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+6042
-3936
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ exclude_lines =
99
raise NotImplementedError
1010
if __name__ == .__main__.:
1111
ignore_errors = True
12-
omit =
12+
omit =
1313
tests/*

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[flake8]
22

33
extend-ignore =
4+
# whitespace before ":", conflicts with black
5+
E203
46
F403
57
F405
8+
# line too long, conflicts with black in rare cases
9+
E501
610
exclude =
711
build,
812
dist,

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pycqa/isort
5+
rev: 5.12.0
6+
hooks:
7+
- id: isort
8+
name: isort (python)
9+
args: ["--profile", "black", "--filter-files", "--line-length", "79"]
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v4.4.0
12+
hooks:
13+
- id: check-added-large-files
14+
- id: check-merge-conflict
15+
- id: check-yaml
16+
args: [--allow-multiple-documents]
17+
- id: end-of-file-fixer
18+
- id: trailing-whitespace
19+
- repo: https://github.com/psf/black
20+
rev: 23.7.0
21+
hooks:
22+
- id: black-jupyter
23+
# It is recommended to specify the latest version of Python
24+
# supported by your project here, or alternatively use
25+
# pre-commit's default_language_version, see
26+
# https://pre-commit.com/#top_level-default_language_version
27+
language_version: python3.11
28+
args: ["--line-length", "79"]

CHANGELOG.md

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

33
## 0.2 series
44

5+
### 0.2.4
6+
7+
* Made figure sizes for visualization functions customizable via `petab.visualize.plotting.DEFAULT_FIGSIZE`
8+
by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/222
9+
* Fixed Handling missing `nominalValue` in `Problem.get_x_nominal`
10+
by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/223
11+
* Fixed pandas 2.1.0 `FutureWarnings`
12+
by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/226
13+
* Added pre-commit-config, ran black, isort, ...
14+
by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/225
15+
16+
**Full Changelog**: https://github.com/PEtab-dev/libpetab-python/compare/v0.2.3...v0.2.4
17+
518
### 0.2.3
619

720
* Fixed validation failures in case of missing optional fields in visualization tables

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The PEtab library is available on [pypi](https://pypi.org/project/petab/)
2121
and the easiest way to install it is running
2222

2323
pip3 install petab
24-
24+
2525
It will require Python>=3.9 to run. (We are following the
2626
[numpy Python support policy](https://numpy.org/neps/nep-0029-deprecation_policy.html)).
2727

@@ -40,7 +40,7 @@ be:
4040
`petablint`
4141

4242
- [`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,
43+
to create the parameter table, once you have set up the model,
4444
condition table, observable table and measurement table
4545

4646
- [`petab.create_combine_archive`](https://petab.readthedocs.io/projects/libpetab-python/en/latest/build/_autosummary/petab.core.html#petab.core.create_combine_archive)

doc/conf.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,80 +15,80 @@
1515
# add these directories to sys.path here. If the directory is relative to the
1616
# documentation root, use os.path.abspath to make it absolute, like shown here.
1717
#
18-
sys.path.insert(0, os.path.abspath('..'))
18+
sys.path.insert(0, os.path.abspath(".."))
1919

2020
# -- Project information -----------------------------------------------------
2121

22-
project = 'libpetab-python'
23-
copyright = '2018, the PEtab developers'
24-
author = 'PEtab developers'
22+
project = "libpetab-python"
23+
copyright = "2018-2023, the PEtab developers"
24+
author = "PEtab developers"
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = 'latest'
27+
release = "latest"
2828

2929
# -- Custom pre-build --------------------------------------------------------
3030

3131

32-
subprocess.run(['python', 'md2rst.py'])
32+
subprocess.run(["python", "md2rst.py"])
3333

3434
# -- General configuration ---------------------------------------------------
3535

3636
# Add any Sphinx extension module names here, as strings. They can be
3737
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3838
# ones.
3939
extensions = [
40-
'sphinx.ext.napoleon',
41-
'sphinx.ext.autodoc',
42-
'sphinx.ext.autosummary',
43-
'sphinx.ext.intersphinx',
44-
'sphinx.ext.viewcode',
45-
'sphinx_markdown_tables',
46-
'myst_nb',
40+
"sphinx.ext.napoleon",
41+
"sphinx.ext.autodoc",
42+
"sphinx.ext.autosummary",
43+
"sphinx.ext.intersphinx",
44+
"sphinx.ext.viewcode",
45+
"sphinx_markdown_tables",
46+
"myst_nb",
4747
]
4848

4949
intersphinx_mapping = {
50-
'pandas': ('https://pandas.pydata.org/docs/', None),
51-
'numpy': ('https://numpy.org/devdocs/', None),
52-
'sympy': ('https://docs.sympy.org/latest/', None),
53-
'python': ('https://docs.python.org/3', None),
50+
"pandas": ("https://pandas.pydata.org/docs/", None),
51+
"numpy": ("https://numpy.org/devdocs/", None),
52+
"sympy": ("https://docs.sympy.org/latest/", None),
53+
"python": ("https://docs.python.org/3", None),
5454
}
5555

5656
# Add any paths that contain templates here, relative to this directory.
57-
templates_path = ['_templates']
57+
templates_path = ["_templates"]
5858

5959
# List of patterns, relative to source directory, that match files and
6060
# directories to ignore when looking for source files.
6161
# This pattern also affects html_static_path and html_extra_path.
6262
exclude_patterns = [
63-
'build/doctrees',
64-
'build/html',
65-
'**.ipynb_checkpoints',
66-
'logo/LICENSE.md',
63+
"build/doctrees",
64+
"build/html",
65+
"**.ipynb_checkpoints",
66+
"logo/LICENSE.md",
6767
]
6868

69-
master_doc = 'index'
69+
master_doc = "index"
7070

7171
autosummary_generate = True
7272

7373
autodoc_default_options = {
7474
"members": None,
75-
"imported-members": ['petab'],
75+
"imported-members": ["petab"],
7676
"inherited-members": None,
7777
"private-members": None,
7878
"show-inheritance": None,
7979
}
8080

8181
# For some reason causes sphinx import errors otherwise
82-
autodoc_mock_imports = ['yaml']
82+
autodoc_mock_imports = ["yaml"]
8383

8484
# myst_nb options
8585
# https://myst-nb.readthedocs.io/en/latest/configuration.html
8686
nb_execution_mode = "force"
8787

8888

8989
source_suffix = {
90-
'.rst': 'restructuredtext',
91-
'.txt': 'restructuredtext',
90+
".rst": "restructuredtext",
91+
".txt": "restructuredtext",
9292
}
9393

9494
# ignore numpy warnings
@@ -100,12 +100,12 @@
100100
# The theme to use for HTML and HTML Help pages. See the documentation for
101101
# a list of builtin themes.
102102
#
103-
html_theme = 'sphinx_rtd_theme'
103+
html_theme = "sphinx_rtd_theme"
104104

105105
# Add any paths that contain custom static files (such as style sheets) here,
106106
# relative to this directory. They are copied after the builtin static files,
107107
# so a file named "default.css" will overwrite the builtin "default.css".
108-
html_static_path = ['_static']
108+
html_static_path = ["_static"]
109109

110110
html_context = {
111111
"display_github": True,
@@ -115,15 +115,15 @@
115115
"conf_py_path": "/doc",
116116
}
117117

118-
html_logo = 'logo/PEtab.png'
118+
html_logo = "logo/PEtab.png"
119119

120120

121121
def skip_some_objects(app, what, name, obj, skip, options):
122122
"""Exclude some objects from the documentation"""
123-
if getattr(obj, '__module__', None) == 'collections':
123+
if getattr(obj, "__module__", None) == "collections":
124124
return True
125125

126126

127127
def setup(app):
128128
"""Sphinx setup"""
129-
app.connect('autodoc-skip-member', skip_some_objects)
129+
app.connect("autodoc-skip-member", skip_some_objects)

doc/example/example_Fujita/Fujita_measurementData.tsv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ pS6_tot model1_data6 0.07993 300 scaling_pS6_tot 0.01 model1_data6_pS6_tot
142142
pS6_tot model1_data6 0.42868 600 scaling_pS6_tot 0.02 model1_data6_pS6_tot
143143
pS6_tot model1_data6 0.60508 900 scaling_pS6_tot 0.03 model1_data6_pS6_tot
144144
pS6_tot model1_data6 0.62088 1800 scaling_pS6_tot 0.035 model1_data6_pS6_tot
145-
pS6_tot model1_data6 0.32084 3600 scaling_pS6_tot 0.07 model1_data6_pS6_tot
145+
pS6_tot model1_data6 0.32084 3600 scaling_pS6_tot 0.07 model1_data6_pS6_tot

doc/example/example_Fujita/Fujita_parameters_scaling.tsv

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ reaction_1_k1 reaction_{1,k1} log10 1E-08 100000000 0.003690766129111 1 paramete
77
reaction_1_k2 reaction_{1,k2} log10 1E-08 100000000 0.002301175486005 1 laplace 1000;20 laplace 1000;20
88
reaction_2_k1 reaction_{2,k1} log10 1E-08 100000000 0.000936500808211 1 logLaplace 2;1 logLaplace 2;1
99
reaction_2_k2 reaction_{2,k2} log10 1E-08 100000000 60965.2066642586 1 parameterScaleLaplace 2;1 parameterScaleLaplace 2;1
10-
reaction_3_k1 reaction_{3,k1} log10 1E-08 100000000 0.433225051651771 1
11-
reaction_4_k1 reaction_{4,k1} log10 1E-08 100000000 0.030155177423024 1
12-
reaction_5_k1 reaction_{5,k1} log10 1E-08 100000000 3.27310803801897E-06 1
13-
reaction_5_k2 reaction_{5,k2} log10 1E-08 100000000 0.000398546299782 1
14-
reaction_6_k1 reaction_{6,k1} log10 1E-08 100000000 5.46319692934546E-06 1
15-
reaction_7_k1 reaction_{7,k1} log10 1E-08 100000000 0.011803208311735 1
16-
reaction_8_k1 reaction_{8,k1} log10 1E-08 100000000 0.000944761775113 1
17-
reaction_9_k1 reaction_{9,k1} log10 1E-08 100000000 0.028510798479438 1
18-
scaling_pAkt_tot scaling_{pAkt}_tot log10 1E-08 100000000 41.377103160384 1
19-
scaling_pEGFR_tot scaling_{pEGFR}_tot log10 1E-08 100000000 5.64785460492811E-08 1
20-
scaling_pS6_tot scaling_{pS6}_tot log10 1E-08 100000000 78521.9513232784 1
10+
reaction_3_k1 reaction_{3,k1} log10 1E-08 100000000 0.433225051651771 1
11+
reaction_4_k1 reaction_{4,k1} log10 1E-08 100000000 0.030155177423024 1
12+
reaction_5_k1 reaction_{5,k1} log10 1E-08 100000000 3.27310803801897E-06 1
13+
reaction_5_k2 reaction_{5,k2} log10 1E-08 100000000 0.000398546299782 1
14+
reaction_6_k1 reaction_{6,k1} log10 1E-08 100000000 5.46319692934546E-06 1
15+
reaction_7_k1 reaction_{7,k1} log10 1E-08 100000000 0.011803208311735 1
16+
reaction_8_k1 reaction_{8,k1} log10 1E-08 100000000 0.000944761775113 1
17+
reaction_9_k1 reaction_{9,k1} log10 1E-08 100000000 0.028510798479438 1
18+
scaling_pAkt_tot scaling_{pAkt}_tot log10 1E-08 100000000 41.377103160384 1
19+
scaling_pEGFR_tot scaling_{pEGFR}_tot log10 1E-08 100000000 5.64785460492811E-08 1
20+
scaling_pS6_tot scaling_{pS6}_tot log10 1E-08 100000000 78521.9513232784 1
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

doc/example/example_Isensee/Isensee_experimentalCondition.tsv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ JI09_160126_Drg449_444_CycNuc__Fsk10_and_IBMX100 Fsk(10)/IBMX(100) 0 10 0 100 0
119119
JI09_160126_Drg449_444_CycNuc__Sp8_Br_cAMPS_AM10 Sp8-Br-cAMPS-AM(10) 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0
120120
JI09_160201_Drg453-452_CycNuc__ctrl ctrl 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
121121
JI09_160201_Drg453-452_CycNuc__Fsk Fsk(10) 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0
122-
JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Sp8-Br-cAMPS-AM(10) 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0
122+
JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Sp8-Br-cAMPS-AM(10) 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0

doc/example/example_Isensee/Isensee_measurementData.tsv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,4 +685,4 @@ Calpha_Microscopy control JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM 1711.76
685685
Calpha_Microscopy control JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM 1970.37755061332 15 s_Calpha_global;b_Calpha_global;rel_open;xi_rel_open s_Calpha_global;rho_Calpha_Microscopy lin normal JI09_160201_Drg453_452_CycNuc JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Drg453
686686
Calpha_Microscopy control JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM 1950.86994136962 30 s_Calpha_global;b_Calpha_global;rel_open;xi_rel_open s_Calpha_global;rho_Calpha_Microscopy lin normal JI09_160201_Drg453_452_CycNuc JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Drg453
687687
Calpha_Microscopy control JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM 2016.8833683752 60 s_Calpha_global;b_Calpha_global;rel_open;xi_rel_open s_Calpha_global;rho_Calpha_Microscopy lin normal JI09_160201_Drg453_452_CycNuc JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Drg453
688-
Calpha_Microscopy control JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM 1802.11729015102 120 s_Calpha_global;b_Calpha_global;rel_open;xi_rel_open s_Calpha_global;rho_Calpha_Microscopy lin normal JI09_160201_Drg453_452_CycNuc JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Drg453
688+
Calpha_Microscopy control JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM 1802.11729015102 120 s_Calpha_global;b_Calpha_global;rel_open;xi_rel_open s_Calpha_global;rho_Calpha_Microscopy lin normal JI09_160201_Drg453_452_CycNuc JI09_160201_Drg453-452_CycNuc__Sp8_Br_cAMPS_AM Drg453

0 commit comments

Comments
 (0)