Skip to content

Commit 390305f

Browse files
authored
Merge pull request #1034 from ICB-DCM/release_v0.10.21
Release v0.10.21
2 parents f921278 + 30c7293 commit 390305f

Some content is hidden

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

54 files changed

+2198
-1948
lines changed

.coveragerc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[run]
2+
3+
source = amici
4+
omit =
5+
*/amici.py
6+
*/amici_without_hdf5.py
7+
*/ThirdParty/*
8+
*.template.*
9+
parallel = true
10+
11+
[report]
12+
13+
exclude_lines =
14+
pragma: no cover
15+
raise
16+
except:
17+
import
18+

.github/workflows/test-petab-test-suite.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,19 @@ jobs:
4747
run: |
4848
AMICI_PARALLEL_COMPILE=2 check_time.sh \
4949
install_sdist pip3 install -v --user \
50-
$(ls -t python/sdist/dist/amici-*.tar.gz | head -1)[petab]
50+
$(ls -t python/sdist/dist/amici-*.tar.gz | head -1)[petab,pysb]
5151
5252
- name: Run PEtab-related unit tests
5353
run: |
54-
pytest --cov-report=xml --cov=./ tests/testMisc.py
54+
pytest --cov-report=xml --cov=./ python/tests/test_*petab*.py
5555
5656
# retrieve test models
5757
- name: Download and run petab test suite
5858
run: |
5959
git clone --depth 1 https://github.com/petab-dev/petab_test_suite \
6060
&& cd petab_test_suite; pip3 install -e .; cd .. \
61-
&& AMICI_PARALLEL_COMPILE=2 pytest -v --cov-report=xml --cov-append --cov=./ tests/petab_test_suite/
61+
&& AMICI_PARALLEL_COMPILE=2 pytest -v \
62+
--cov-report=xml --cov-append --cov=amici tests/petab_test_suite/
6263
6364
- name: Codecov
6465
uses: codecov/codecov-action@v1.0.6

.gitignore

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,29 +104,29 @@ python/testSpeedy.py
104104
python/test.txt
105105

106106
tests/test/*
107-
tests/test_model_steadystate_scaled/*
108-
tests/test_model_presimulation/*
109-
tests/test_model_presimulation_pysb/*
110-
tests/test_model_presimulation_sbml/*
111-
tests/test_likelihoods/*
112-
tests/bax_pore_sequential_amici/*
113-
tests/bax_pore_amici/*
114-
tests/bngwiki_egfr_simple_amici/*
115-
tests/bngwiki_egfr_simple_deletemolecules_amici/*
116-
tests/earm_1_3_amici/*
117-
tests/earm_1_0_amici/*
118-
tests/expression_observables_amici/*
119-
tests/robertson_amici/*
120-
tests/tyson_oscillator_amici/*
121-
tests/bngwiki_simple_amici/*
122-
tests/bngwiki_enzymatic_cycle_mm_amici/*
123-
tests/move_connected_amici/*
124-
tests/michment_amici/*
125-
tests/kinase_cascade_amici/*
126-
tests/hello_pysb_amici/*
127-
tests/fricker_2010_apoptosis_amici/*
128-
tests/explicit_amici/*
129-
tests/fixed_initial_amici/*
107+
*/tests/test_model_steadystate_scaled/*
108+
*/tests/test_model_presimulation/*
109+
*/tests/test_model_presimulation_pysb/*
110+
*/tests/test_model_presimulation_sbml/*
111+
*/tests/test_likelihoods/*
112+
*/tests/bax_pore_sequential_amici/*
113+
*/tests/bax_pore_amici/*
114+
*/tests/bngwiki_egfr_simple_amici/*
115+
*/tests/bngwiki_egfr_simple_deletemolecules_amici/*
116+
*/tests/earm_1_3_amici/*
117+
*/tests/earm_1_0_amici/*
118+
*/tests/expression_observables_amici/*
119+
*/tests/robertson_amici/*
120+
*/tests/tyson_oscillator_amici/*
121+
*/tests/bngwiki_simple_amici/*
122+
*/tests/bngwiki_enzymatic_cycle_mm_amici/*
123+
*/tests/move_connected_amici/*
124+
*/tests/michment_amici/*
125+
*/tests/kinase_cascade_amici/*
126+
*/tests/hello_pysb_amici/*
127+
*/tests/fricker_2010_apoptosis_amici/*
128+
*/tests/explicit_amici/*
129+
*/tests/fixed_initial_amici/*
130130
tests/cpputest/writeResults.h5
131131
tests/cpputest/writeResults.h5.bak
132132
tests/sbml-test-suite/*

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ matrix:
7878
env:
7979
- CI_BUILD=TRUE
8080
- CI_CPPUTEST=TRUE
81-
- CI_CMAKE=TRUE
8281
- CI_ARCHIVE=TRUE
8382
- CI_CPPCHECK=TRUE
8483
- CI_PYTHON=TRUE
@@ -185,7 +184,6 @@ script:
185184
- if [[ "$CI_PYTHON" == "TRUE" ]] && [[ "$ENABLE_GCOV_COVERAGE" == "TRUE" ]]; then $FOLD codecov ./scripts/run-codecov.sh; fi
186185
- if [[ "$CI_PYTHON" == "TRUE" ]] && [[ "$ENABLE_GCOV_COVERAGE" != "TRUE" ]]; then $FOLD python-tests ./scripts/run-python-tests.sh; fi
187186
# needs to be run after python tests
188-
- if [[ "$CI_CMAKE" == "TRUE" ]]; then $FOLD cmake ./tests/testCMakeCompilation.sh; fi
189187
- if [[ "$CI_CPPUTEST" == "TRUE" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then $FOLD valgrind ./scripts/run-valgrind.sh; fi
190188
- if [[ "$CI_CPPUTEST" == "TRUE" ]] && [[ "$TRAVIS_OS_NAME" != "linux" ]]; then $FOLD cpputest ./scripts/run-cpputest.sh; fi
191189
- if [[ "$CI_DOC" == "TRUE" ]]; then $FOLD doxygen ./scripts/run-doxygen.sh; fi

documentation/_templates/autosummary/class.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
.. autoclass:: {{ objname }}
66

77
{% block methods %}
8+
{% if '__init__' in methods %}
89
.. automethod:: __init__
10+
{% endif %}
911
{% if methods %}
1012
.. rubric:: Methods Summary
1113
.. autosummary::

documentation/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ def fix_typehints(sig: str) -> str:
344344
sig = sig.replace('char const *', 'str')
345345
sig = sig.replace('amici::', '')
346346
sig = sig.replace('sunindextype', 'int')
347+
sig = sig.replace('H5::H5File', 'object')
347348

348349
# enum classes
349350
for ec in ['SteadyStateSensitivityMode', 'InternalSensitivityMethod',
@@ -418,9 +419,7 @@ def skip_member(app, what, name, obj, skip, options):
418419
'Model_DAE', 'ConditionContext', 'checkSigmaPositivity',
419420
'createGroup', 'createGroup', 'equals', 'printErrMsgIdAndTxt',
420421
'wrapErrHandlerFn', 'printWarnMsgIdAndTxt',
421-
'AmiciApplication', 'writeSimulationExpData', 'writeReturnData',
422-
'readSimulationExpData', 'readSolverSettingsFromHDF5',
423-
'readModelDataFromHDF5', 'createOrOpenForWriting',
422+
'AmiciApplication', 'writeReturnData',
424423
'writeReturnDataDiagnosis', 'attributeExists', 'locationExists',
425424
'createAndWriteDouble1DDataset',
426425
'createAndWriteDouble2DDataset',

documentation/rtd_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ pkgconfig>=1.5.1
77
nbsphinx>=0.5.1
88
recommonmark>=0.6.0
99
sphinx_rtd_theme>=0.4.3
10-
petab>=0.1.3
10+
petab>=0.1.5
1111
sphinx-autodoc-typehints>=1.10.3

include/amici/hdf5.h

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,33 @@ H5::H5File createOrOpenForWriting(std::string const &hdf5filename);
4242

4343
/**
4444
* @brief Read solver options from HDF5 file
45-
* @param fileId hdf5 file handle to read from
45+
* @param file hdf5 file handle to read from
4646
* @param solver solver to set options on
4747
* @param datasetPath Path inside the HDF5 file
4848
*/
4949
void readSolverSettingsFromHDF5(const H5::H5File &file, Solver &solver,
5050
std::string const &datasetPath);
5151

52+
/**
53+
* @brief Write solver options from HDF5 file
54+
* @param hdf5Filenamehdf5 Name of HDF5 file
55+
* @param solver solver to write options from
56+
* @param hdf5Location Path inside the HDF5 file
57+
*/
58+
void writeSolverSettingsToHDF5(Solver const& solver,
59+
std::string const& hdf5Filename,
60+
std::string const& hdf5Location);
61+
62+
/**
63+
* @brief Write solver options from HDF5 file
64+
* @param file file handle to read from
65+
* @param solver solver to write options from
66+
* @param hdf5Location Path inside the HDF5 file
67+
*/
68+
void writeSolverSettingsToHDF5(Solver const& solver,
69+
H5::H5File const& file,
70+
std::string const& hdf5Location);
71+
5272
/**
5373
* @brief Read solver options from HDF5 file
5474
* @param hdffile Name of HDF5 file

matlab/mtoc/config/Doxyfile.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,8 @@ EXCLUDE_PATTERNS = "_SourceDir_/models/*" \
697697
"_SourceDir_/matlab/mtoc/*" \
698698
"_SourceDir_/matlab/auxiliary/*" \
699699
"_SourceDir_/matlab/SBMLImporter/*" \
700-
"_SourceDir_/python/test/*" \
700+
"_SourceDir_/matlab/tests/*" \
701+
"_SourceDir_/python/tests/*" \
701702
"_SourceDir_/python/sdist/*" \
702703
"_SourceDir_/python/examples/example_*/model_*" \
703704
"_SourceDir_/build/*" \

0 commit comments

Comments
 (0)