Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.18.0 #2115

Merged
merged 29 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8c63c73
Python splines (#1515)
paulstapor May 11, 2023
b2fe23a
Run clang-format / cmake-format (#2083)
dweindl May 12, 2023
f6f7163
Add .pre-commit-config.yaml (#2042)
dweindl May 12, 2023
fe1874c
Run pre-commit run --all-files (#2082)
dweindl May 12, 2023
b4add4a
pre-commit: sort imports / update contrib doc (#2085)
dweindl May 13, 2023
c3595c4
Fix type in exception message
dweindl May 15, 2023
438812d
Update documentation stack / require sphinxcontrib-matlabdomain<0.19…
dweindl May 16, 2023
a5398dd
Fix sensitivities for models with events / extend and cleanup event t…
dweindl May 16, 2023
8868dc1
Model import: Don't create spl.h and sspl.h for models without spline…
dweindl May 16, 2023
06e7442
Add test for events with state-dependent `ddeltaxd{t,p,x}` (#2092)
dweindl May 16, 2023
479900a
Fix .gitignore amici_models
dweindl May 17, 2023
52a1331
SBML import: cleanup _gather_base_locals (#2095)
dweindl May 17, 2023
d0a12c4
SBML import - faster _get_list_of_species_references (#2094)
dweindl May 17, 2023
7f52e91
Cleanup time symbols (#2096)
dweindl May 17, 2023
7a9a16c
Update Doxygen (#2099)
dweindl May 22, 2023
8d286c7
update swig ignores (#2098)
FFroehlich May 22, 2023
d0e8853
PEtab-multilanguage proof of concept for PySB-PEtab (#1800)
dweindl May 22, 2023
4d767e7
CMake: Fix choosing SWIG via env variable (#2100)
dweindl May 22, 2023
238635c
Fix unquoted filename (#2105)
dweindl May 23, 2023
451440c
CMake: Try FindBLAS if no other information was provided (#2104)
dweindl May 23, 2023
aa87f45
CI: Increase number of starts in ExampleSplinesSwameye2003.ipynb (#2113)
dweindl May 25, 2023
f4252b9
Pin nbsphinx (#2114)
dweindl May 25, 2023
3b4e12d
Fix cblas error for models without solver states in combination with …
dweindl May 25, 2023
fd1e22e
Fix compilation error for models with events and xdot=0 (#2111)
dweindl May 25, 2023
d301df6
Fix import error for models with events and 0 states (#2112)
dweindl May 26, 2023
f4c95eb
Cleanup .github/workflows/test_windows.yml
dweindl May 26, 2023
85c1f51
Warn if ASA is used in combination with events (#2097)
dweindl May 26, 2023
91767ab
GHA: Skip spline tests under valgrind (#2116)
dweindl May 26, 2023
7c99f34
Bump version number; update release notes
dweindl May 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ exclude_lines =
raise
except:
import

1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

# default owners
* @AMICI-dev/amici-maintainers

2 changes: 1 addition & 1 deletion .github/workflows/test_benchmark_collection_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
git clone --depth 1 https://github.com/benchmarking-initiative/Benchmark-Models-PEtab.git \
&& export BENCHMARK_COLLECTION="$(pwd)/Benchmark-Models-PEtab/Benchmark-Models/" \
&& AMICI_PARALLEL_COMPILE=2 tests/benchmark-models/test_benchmark_collection.sh
# run gradient checks
- name: Run Gradient Checks
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test_petab_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
libatlas-base-dev \
python3-venv
- run: pip3 install pysb petab

- name: Build BNGL
run: |
scripts/buildBNGL.sh
Expand All @@ -59,6 +57,11 @@ jobs:
run: |
scripts/installAmiciSource.sh
- name: Install petab
run: |
source ./build/venv/bin/activate \
&& pip3 install wheel pytest shyaml pytest-cov pysb
# retrieve test models
- name: Download and install PEtab test suite
run: |
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/test_python_cplusplus.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: C++/Python Tests
on: [push, merge_group, workflow_dispatch]
on:
push:
merge_group:
workflow_dispatch:
pull_request:
branches:
- master

jobs:
build:
Expand Down Expand Up @@ -91,11 +97,23 @@ jobs:
source build/venv/bin/activate \
&& pytest \
--ignore-glob=*petab* \
--ignore-glob=*test_splines.py \
--cov=amici \
--cov-report=xml:"${AMICI_DIR}/build/coverage_py.xml" \
--cov-append \
${AMICI_DIR}/python/tests
- name: Python tests splines
if: ${{ github.base_ref == 'master' || github.event.merge_group.base_ref == 'master'}}
run: |
source build/venv/bin/activate \
&& pytest \
--cov=amici \
--cov-report=xml:"${AMICI_DIR}/build/coverage_py.xml" \
--cov-append \
${AMICI_DIR}/python/tests/test_splines.py
- name: Install notebook dependencies
run: |
source build/venv/bin/activate \
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_python_ver_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ jobs:
run: |
source build/venv/bin/activate \
&& pip3 install git+https://github.com/pysb/pysb \
&& python3 -m pytest --ignore-glob=*petab* ${AMICI_DIR}/python/tests
&& python3 -m pytest --ignore-glob=*petab* \
--ignore-glob=*test_splines.py ${AMICI_DIR}/python/tests
17 changes: 15 additions & 2 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
workflow_dispatch:
schedule:
- cron: '48 4 * * *'
pull_request:
branches:
- master

jobs:
build:
name: Tests Windows

runs-on: windows-2019
runs-on: windows-latest

env:
AMICI_SKIP_CMAKE_TESTS: "TRUE"
Expand Down Expand Up @@ -74,4 +77,14 @@ jobs:
- run: python -m amici

- name: Run Python tests
run: python -m pytest --ignore-glob=*petab* --ignore-glob=*special* python/tests
shell: bash
run: |
python -m pytest \
--ignore-glob=*petab* \
--ignore-glob=*special* \
--ignore-glob=*test_splines.py \
python/tests

- name: Python tests splines
if: ${{ github.base_ref == 'master' || github.event.merge_group.base_ref == 'master'}}
run: python -m pytest python/tests/test_splines.py
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ models/model_robertson/build/*
!models/model_calvetti
models/model_calvetti/build/*

amici_models/*
amici_models/

simulate_model_*_hdf.m
simulate_model_*.m
Expand Down
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.11
exclude: '^(ThirdParty|models)/'
Loading