Skip to content

Commit 0859bde

Browse files
authored
Release 0.15.0
Merge pull request #1927 from AMICI-dev/release_0.15.0
2 parents b5177d9 + d675172 commit 0859bde

Some content is hidden

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

52 files changed

+1746
-1210
lines changed

.clang-format

Lines changed: 11 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,13 @@
11
---
2+
BasedOnStyle: LLVM
3+
IndentWidth: 4
4+
---
25
Language: Cpp
3-
# BasedOnStyle: LLVM
4-
AccessModifierOffset: -2
5-
AlignAfterOpenBracket: Align
6-
AlignConsecutiveAssignments: false
7-
AlignConsecutiveDeclarations: false
8-
AlignEscapedNewlinesLeft: false
9-
AlignOperands: true
10-
AlignTrailingComments: true
11-
AllowAllParametersOfDeclarationOnNextLine: true
12-
AllowShortBlocksOnASingleLine: false
13-
AllowShortCaseLabelsOnASingleLine: false
14-
AllowShortFunctionsOnASingleLine: All
15-
AllowShortIfStatementsOnASingleLine: false
16-
AllowShortLoopsOnASingleLine: false
17-
AlwaysBreakAfterDefinitionReturnType: None
18-
AlwaysBreakAfterReturnType: None
19-
AlwaysBreakBeforeMultilineStrings: false
20-
AlwaysBreakTemplateDeclarations: false
21-
BinPackArguments: true
22-
BinPackParameters: true
23-
BraceWrapping:
24-
AfterClass: false
25-
AfterControlStatement: false
26-
AfterEnum: false
27-
AfterFunction: false
28-
AfterNamespace: false
29-
AfterObjCDeclaration: false
30-
AfterStruct: false
31-
AfterUnion: false
32-
BeforeCatch: false
33-
BeforeElse: false
34-
IndentBraces: false
35-
BreakBeforeBinaryOperators: None
36-
BreakBeforeBraces: Attach
37-
BreakBeforeTernaryOperators: true
38-
BreakConstructorInitializersBeforeComma: false
39-
BreakAfterJavaFieldAnnotations: false
40-
BreakStringLiterals: true
41-
ColumnLimit: 80
42-
CommentPragmas: '^ IWYU pragma:'
43-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
44-
ConstructorInitializerIndentWidth: 4
45-
ContinuationIndentWidth: 4
46-
Cpp11BracedListStyle: true
47-
DerivePointerAlignment: false
48-
DisableFormat: false
49-
ExperimentalAutoDetectBinPacking: false
50-
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
51-
IncludeCategories:
52-
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
53-
Priority: 2
54-
- Regex: '^(<|"(gtest|isl|json)/)'
55-
Priority: 3
56-
- Regex: '.*'
57-
Priority: 1
58-
IncludeIsMainRegex: '$'
59-
IndentCaseLabels: false
60-
IndentWidth: 4
61-
IndentWrappedFunctionNames: false
62-
JavaScriptQuotes: Leave
63-
JavaScriptWrapImports: true
64-
KeepEmptyLinesAtTheStartOfBlocks: true
65-
MacroBlockBegin: ''
66-
MacroBlockEnd: ''
67-
MaxEmptyLinesToKeep: 1
68-
NamespaceIndentation: None
69-
ObjCBlockIndentWidth: 2
70-
ObjCSpaceAfterProperty: false
71-
ObjCSpaceBeforeProtocolList: true
72-
PenaltyBreakBeforeFirstCallParameter: 19
73-
PenaltyBreakComment: 300
74-
PenaltyBreakFirstLessLess: 120
75-
PenaltyBreakString: 1000
76-
PenaltyExcessCharacter: 1000000
77-
PenaltyReturnTypeOnItsOwnLine: 60
78-
PointerAlignment: Right
79-
ReflowComments: true
80-
SortIncludes: true
81-
SpaceAfterCStyleCast: false
82-
SpaceAfterTemplateKeyword: true
83-
SpaceBeforeAssignmentOperators: true
84-
SpaceBeforeParens: ControlStatements
85-
SpaceInEmptyParentheses: false
86-
SpacesBeforeTrailingComments: 1
87-
SpacesInAngles: false
88-
SpacesInContainerLiterals: true
89-
SpacesInCStyleCastParentheses: false
90-
SpacesInParentheses: false
91-
SpacesInSquareBrackets: false
92-
Standard: Cpp11
93-
TabWidth: 8
94-
UseTab: Never
95-
...
96-
6+
AlignAfterOpenBracket: BlockIndent
7+
BreakBeforeBinaryOperators: All
8+
BreakConstructorInitializers: BeforeComma
9+
ColumnLimit: 80
10+
PointerAlignment: Left
11+
QualifierAlignment: Custom
12+
QualifierOrder: ['inline', 'static', 'type', 'const']
13+
ReferenceAlignment: Left

.github/workflows/deploy_protected.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on:
44
branches:
55
- master
66
- develop
7+
- release**
78
pull_request:
8-
branches:
9-
- master
9+
paths:
10+
- docker/Dockerfile
1011
workflow_dispatch:
1112

1213
jobs:
@@ -27,6 +28,10 @@ jobs:
2728
python-version: ${{ matrix.python-version }}
2829
- uses: actions/checkout@v3
2930
- run: git archive -o docker/amici.tar.gz --format=tar.gz HEAD
31+
- name: Set up QEMU
32+
uses: docker/setup-qemu-action@v2
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v2
3035
- name: Publish to Registry
3136
uses: elgohr/Publish-Docker-Github-Action@v4
3237
with:
@@ -36,3 +41,4 @@ jobs:
3641
workdir: docker/
3742
dockerfile: Dockerfile
3843
tag_names: true
44+
platforms: linux/amd64,linux/arm64

.github/workflows/test_benchmark_collection_models.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
&& sudo apt-get install -y swig libatlas-base-dev
4545
4646
- run: echo "${HOME}/.local/bin/" >> $GITHUB_PATH
47-
- run: echo "${GITHUB_WORKSPACE}/tests/performance/" >> $GITHUB_PATH
4847

4948
# install AMICI
5049
- name: Create AMICI sdist
@@ -61,3 +60,11 @@ jobs:
6160
git clone --depth 1 https://github.com/benchmarking-initiative/Benchmark-Models-PEtab.git \
6261
&& export BENCHMARK_COLLECTION="$(pwd)/Benchmark-Models-PEtab/Benchmark-Models/" \
6362
&& AMICI_PARALLEL_COMPILE=2 tests/benchmark-models/test_benchmark_collection.sh
63+
64+
# upload results
65+
- uses: actions/upload-artifact@v3
66+
with:
67+
name: computation times
68+
path: |
69+
tests/benchmark-models/computation_times.csv
70+
tests/benchmark-models/computation_times.png

.github/workflows/test_performance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
- name: "Upload artifact: CS_Signalling_ERBB_RAS_AKT_petab"
6969
uses: actions/upload-artifact@v3
7070
with:
71-
name: CS_Signalling_ERBB_RAS_AKT
72-
path: CS_Signalling_ERBB_RAS_AKT/CS_Signalling_ERBB_RAS_AKT_petab
71+
name: model_performance_test
72+
path: model_performance_test
7373

7474
# install model package
7575
- name: Install test model

.github/workflows/test_python_cplusplus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Cache sonar files
7373
id: cache-sonar
74-
uses: actions/cache@v1
74+
uses: actions/cache@v3
7575
with:
7676
path: sonar_cache
7777
key: ${{ runner.os }}-sonar_cache

CHANGELOG.md

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

33
## v0.X Series
44

5+
### v0.15.0 (2023-01-11)
6+
7+
Features
8+
* Improved logging by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1907
9+
10+
For Python: Don't print messages to stdout, but collect them in ReturnData
11+
and forward them to python logging, making it easier to filter specific
12+
messages or to disable output completely. Messages are also available via
13+
`ReturnData.messages`.
14+
15+
**breaking change for C++ interface**:
16+
Messages aren't printed to stdout by default, but are collected in
17+
`ReturnData`. The user has to decide what to do with them.
18+
19+
* MultiArch docker build by @FFroehlich
20+
in https://github.com/AMICI-dev/AMICI/pull/1903
21+
* Added cmake target for cmake-format
22+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1909
23+
* Updated clang-format style, fixed clang-format target
24+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1908
25+
* Subsetting `ReturnData` fields by ID via `ReturnDataView.by_id`
26+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1911 https://github.com/AMICI-dev/AMICI/pull/1916
27+
28+
Fixes
29+
* PEtab import: fixed handling of fixed parameters for rule targets
30+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1915
31+
* Fixed compiler warnings for matlab interface
32+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1919
33+
* Fixed pandas DeprecationWarning for Series.iteritems()
34+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1921
35+
* Fixed circular import in amici.petab_import_pysb
36+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1922
37+
* Fixed 'operator ==' swig warning
38+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1923
39+
* Prevent swig4.0.1 segfault
40+
by @dweindl in https://github.com/AMICI-dev/AMICI/pull/1924
41+
42+
**Full Changelog**: https://github.com/AMICI-dev/AMICI/compare/v0.14.0...v0.15.0
43+
44+
545
### v0.14.0 (2022-11-23)
646

747
#### Features:

0 commit comments

Comments
 (0)