-
Notifications
You must be signed in to change notification settings - Fork 31
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
GHA: test python3.12 #2179
GHA: test python3.12 #2179
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2179 +/- ##
=========================================
Coverage 76.64% 76.65%
=========================================
Files 91 91
Lines 15112 14998 -114
=========================================
- Hits 11583 11497 -86
+ Misses 3529 3501 -28
Flags with carried forward coverage won't be shown. Click here to find out more. |
@FFroehlich Can you please rebase https://github.com/FFroehlich/pysb/tree/fix_pattern_matching onto the latest pysb? In the current state it's not installable with python3.12. Detailshttps://github.com/AMICI-dev/AMICI/actions/runs/6564520748/job/17831043835:
|
done, also bumping up getting that branch merged on my todo list |
Generally works. Some sympy
|
We had to require setuptools<64 because it change its temporary build directory from a known path to a randomly named temporary directory. However, setuptools<64 doesn't work with for Python3.12 (#2179). Therefore, this adds an option to change the setuptools temporary build directory via the `AMICI_BUILD_TEMP` environment variable, so we have those temp files in a known path for coverage analysis. Not meant to be used by users.
PySB is currently restricts sympy to <1.12 pysb/pysb@e83937c |
works with sympy@master https://github.com/AMICI-dev/AMICI/actions/runs/7214927173/job/19658093049 |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Run nightly tests also on python3.12
Improves model code generation by collapsing cases with identical statements. I.e. ``` switch(a) case b: case c: statements; break; ``` instead of ``` switch(a) case b: statements; break; case c: statements; break; ``` For my current model of interest, containing many events, this significantly reduces the generated code: E.g.: ``` 16K my_model/deltasx.cpp 6,6M my_model_old/deltasx.cpp ``` Overall, for this model, I got from 204201 LOC down to 7936 LOC (i.e. -96%). * .. * Apply suggestions from code review Co-authored-by: Dilan Pathirana <[email protected]> * GHA: test python3.12 (#2179) Run nightly tests also on python3.12 * Deterministic order of event assignments (#2242) Ensure event assignments targets are processed in deterministic order. Otherwise the ordering of state variables may change between subsequent model imports, which we'd like to avoid. Closes #2241. * Fix AMICI hiding all warnings (#2243) Previously, importing amici would result in all warnings of the program being hidden, due to `logging.captureWarnings(True)`: ```sh $ python -c "import warnings; warnings.warn('bla');" <string>:1: UserWarning: bla $ python -c "import amici; import warnings; warnings.warn('bla');" $ ``` This can't be the desired default. Changes: * Default to not capturing warnings * If warnings are to be captured, at least handle them by amici loggers Closes ICB-DCM/pyPESTO#1252 --------- Co-authored-by: Dilan Pathirana <[email protected]>
Run nightly tests also on python3.12
Waiting for