Skip to content

Commit 7168721

Browse files
authored
Prepare release 0.34.0 (#2929)
Bump version, update changelog.
1 parent cc55c45 commit 7168721

Some content is hidden

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

43 files changed

+183
-137
lines changed

CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,76 @@ See also our [versioning policy](https://amici.readthedocs.io/en/latest/versioni
44

55
## v0.X Series
66

7+
### v0.34.0 (2025-07-29)
8+
9+
This will probably be the last release to include the MATLAB interface.
10+
11+
**Fixes**
12+
13+
* **Breaking changes** Events are now also handled during pre-equilibration,
14+
presimulation, and post-equilibration.
15+
This may be a breaking change, as it may lead to different results for models
16+
with events that may trigger during these periods. This change is
17+
considered a bugfix, as it was not intended to ignore events during these
18+
periods.
19+
20+
(by @dweindl in #2777, #2780, #2859, #2881, #2889, #2920, #2921, #2925)
21+
* Fixed various issues related to adjoint sensitivity analysis for models with
22+
events.
23+
While many cases are now supported, it is still highly recommended to
24+
check the ASA results for models with events against forward sensitivities
25+
or finite differences.
26+
* Adjoint sensitivities for Python-imported models with events
27+
(by @paulstapor & @dweindl in https://github.com/AMICI-dev/AMICI/pull/1539)
28+
* Fix Model::addAdjointQuadratureEventUpdate
29+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2787)
30+
* Fix indexing errors for adjoint quadratures during event updates
31+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2796)
32+
* Fix deltaxB dimensions (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2803)
33+
* Fix (some) ASA event handling (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2797)
34+
* Fixed a number of issues related to the handling of events or discontinuities
35+
in general:
36+
* Fixed import of DAE models with events (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2897)
37+
* Fixed root functions for events with initialValue=trigger=false (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2910)
38+
* Fixed check for sign change, fix Heaviside update (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2927)
39+
* Fixed sign of residuals (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2896)
40+
* Updated the steady state notebook to match the current implementation
41+
(by @plakrisenko & @dweindl in https://github.com/AMICI-dev/AMICI/pull/2891)
42+
* Improved sigma<=0 error reporting (by @FFroehlich in https://github.com/AMICI-dev/AMICI/pull/2829)
43+
* Fixed sensitivities for the total abundances of conservation laws
44+
(only relevant if `AMICI_EXPERIMENTAL_SBML_NONCONST_CLS` is enabled)
45+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2782)
46+
* Fix sensitivities w.r.t. unused log-scaled NaN parameters (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2903)
47+
48+
**Features**
49+
50+
* AMICI should now be pip-installable without pre-installing SWIG or BLAS
51+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2774,
52+
https://github.com/AMICI-dev/AMICI/pull/2772)
53+
* Event/discontinuity handling for JAX models
54+
* Track discontinuities in JAX & fix gradient for models with parameter
55+
dependent roots (by @FFroehlich in https://github.com/AMICI-dev/AMICI/pull/2815)
56+
* Improve JAX event integration (by @FFroehlich in https://github.com/AMICI-dev/AMICI/pull/2841)
57+
* mask event functions in jax (by @FFroehlich in https://github.com/AMICI-dev/AMICI/pull/2863)
58+
* Handle state-independent, parameter-dependent event triggers without root-finding
59+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2913)
60+
* Presimulation is now also supported in combination with adjoint sensitivities
61+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2786)
62+
* It is now possible to set a separate $t_0$ for pre-equilibration and main
63+
simulation (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2793)
64+
* Sensitivity analysis for `AlgebraicRule` / DAE models is now also supported
65+
for Python-imported models
66+
(by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2101)
67+
* An optional random generator seed can now be passed to
68+
`ExpData::ExpData(ReturnData const&, ...)` when generating synthetic
69+
measurements (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2802)
70+
* Added `ReturnData::plist` (by @dweindl in https://github.com/AMICI-dev/AMICI/pull/2874)
71+
72+
... and extended tests, documentation, and many changes under the hood.
73+
74+
**Full Changelog**: https://github.com/AMICI-dev/AMICI/compare/v0.33.0...v0.34.0
75+
76+
777
### v0.33.0 (2025-06-11)
878

979
Note that this release requires Python >= 3.11.

models/model_calvetti_py/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if(DEFINED ENV{AMICI_LDFLAGS})
3030
link_libraries("$ENV{AMICI_LDFLAGS}")
3131
endif()
3232

33-
find_package(Amici 0.33.0 REQUIRED HINTS
33+
find_package(Amici 0.34.0 REQUIRED HINTS
3434
${CMAKE_CURRENT_LIST_DIR}/../../build)
3535
message(STATUS "Found AMICI ${Amici_DIR}")
3636
set_target_properties(Upstream::amici PROPERTIES

models/model_calvetti_py/model_calvetti_py.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#include <amici/defines.h>
22
#include <array>
33

4-
namespace amici {
5-
6-
namespace model_model_calvetti_py {
4+
namespace amici::model_model_calvetti_py {
75

86
// clang-format off
97

@@ -124,6 +122,4 @@ std::array<int, 6> stateIdxsSolver = {
124122

125123
// clang-format on
126124

127-
} // namespace model_model_calvetti_py
128-
129-
} // namespace amici
125+
} // namespace amici::model_model_calvetti_py

models/model_calvetti_py/model_calvetti_py.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,15 @@ class Model_model_calvetti_py : public amici::Model_DAE {
550550
* @return AMICI version string
551551
*/
552552
std::string getAmiciVersion() const override {
553-
return "0.33.0";
553+
return "0.34.0";
554554
}
555555

556556
/**
557557
* @brief returns the amici version that was used to generate the model
558558
* @return AMICI git commit hash
559559
*/
560560
std::string getAmiciCommit() const override {
561-
return "d587a622b8295dff051b8cb45d009d9b037f7012";
561+
return "08d0c9533715453de60b684970751c6de07ffd9b";
562562
}
563563

564564
bool hasQuadraticLLH() const override {

models/model_calvetti_py/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_extension() -> CMakeExtension:
8787
author_email="model-author-todo",
8888
ext_modules=[MODEL_EXT],
8989
packages=find_namespace_packages(),
90-
install_requires=["amici==0.33.0"],
90+
install_requires=["amici==0.34.0"],
9191
python_requires=">=3.11",
9292
package_data={},
9393
zip_safe=False,

models/model_calvetti_py/wrapfunctions.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
#include "amici/model.h"
77

8-
namespace amici {
9-
namespace generic_model {
10-
8+
namespace amici::generic_model {
119

1210
/**
1311
* @brief Wrapper function to instantiate the linked Amici model without knowing
@@ -16,10 +14,7 @@ namespace generic_model {
1614
*/
1715
std::unique_ptr<amici::Model> getModel();
1816

19-
20-
} // namespace generic_model
21-
22-
} // namespace amici
17+
} // namespace amici::generic_model
2318

2419

2520
#endif /* _amici_wrapfunctions_h */

models/model_dirac_py/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if(DEFINED ENV{AMICI_LDFLAGS})
3030
link_libraries("$ENV{AMICI_LDFLAGS}")
3131
endif()
3232

33-
find_package(Amici 0.33.0 REQUIRED HINTS
33+
find_package(Amici 0.34.0 REQUIRED HINTS
3434
${CMAKE_CURRENT_LIST_DIR}/../../build)
3535
message(STATUS "Found AMICI ${Amici_DIR}")
3636
set_target_properties(Upstream::amici PROPERTIES

models/model_dirac_py/model_dirac_py.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#include <amici/defines.h>
22
#include <array>
33

4-
namespace amici {
5-
6-
namespace model_model_dirac_py {
4+
namespace amici::model_model_dirac_py {
75

86
// clang-format off
97

@@ -65,6 +63,4 @@ std::array<int, 2> stateIdxsSolver = {
6563

6664
// clang-format on
6765

68-
} // namespace model_model_dirac_py
69-
70-
} // namespace amici
66+
} // namespace amici::model_model_dirac_py

models/model_dirac_py/model_dirac_py.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,15 +537,15 @@ class Model_model_dirac_py : public amici::Model_ODE {
537537
* @return AMICI version string
538538
*/
539539
std::string getAmiciVersion() const override {
540-
return "0.33.0";
540+
return "0.34.0";
541541
}
542542

543543
/**
544544
* @brief returns the amici version that was used to generate the model
545545
* @return AMICI git commit hash
546546
*/
547547
std::string getAmiciCommit() const override {
548-
return "d587a622b8295dff051b8cb45d009d9b037f7012";
548+
return "08d0c9533715453de60b684970751c6de07ffd9b";
549549
}
550550

551551
bool hasQuadraticLLH() const override {

models/model_dirac_py/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_extension() -> CMakeExtension:
8787
author_email="model-author-todo",
8888
ext_modules=[MODEL_EXT],
8989
packages=find_namespace_packages(),
90-
install_requires=["amici==0.33.0"],
90+
install_requires=["amici==0.34.0"],
9191
python_requires=">=3.11",
9292
package_data={},
9393
zip_safe=False,

0 commit comments

Comments
 (0)