Skip to content

Fix handling of time in algebraic rules#2946

Merged
dweindl merged 1 commit intoAMICI-dev:mainfrom
dweindl:fix_algebraic_time
Aug 29, 2025
Merged

Fix handling of time in algebraic rules#2946
dweindl merged 1 commit intoAMICI-dev:mainfrom
dweindl:fix_algebraic_time

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Aug 28, 2025

Fixes the following error:

>           if sbml_var.isSetConstant() and sbml_var.getConstant():
               ^^^^^^^^^^^^^^^^^^^^^^
E           AttributeError: 'NoneType' object has no attribute 'isSetConstant'

( tests/sbml/testSBMLSuite.py::test_sbml_testsuite_case[00983])

Fixes the following error:
```
>           if sbml_var.isSetConstant() and sbml_var.getConstant():
               ^^^^^^^^^^^^^^^^^^^^^^
E           AttributeError: 'NoneType' object has no attribute 'isSetConstant'
```
@dweindl dweindl force-pushed the fix_algebraic_time branch from 64b8422 to 1c30922 Compare August 28, 2025 12:46
@dweindl dweindl self-assigned this Aug 28, 2025
@codecov
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.01%. Comparing base (17dbad1) to head (1c30922).
⚠️ Report is 113 commits behind head on main.

Files with missing lines Patch % Lines
python/sdist/amici/sbml_import.py 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2946      +/-   ##
==========================================
- Coverage   79.59%   79.01%   -0.58%     
==========================================
  Files         362      362              
  Lines       23175    23178       +3     
  Branches     1588     1588              
==========================================
- Hits        18446    18314     -132     
- Misses       4717     4852     +135     
  Partials       12       12              
Flag Coverage Δ
cpp 74.95% <0.00%> (-0.01%) ⬇️
cpp_python 33.14% <0.00%> (-0.01%) ⬇️
petab 38.80% <0.00%> (-0.01%) ⬇️
python 73.81% <0.00%> (-0.01%) ⬇️
sbmlsuite-jax ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
python/sdist/amici/sbml_import.py 79.91% <0.00%> (-12.21%) ⬇️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dweindl dweindl marked this pull request as ready for review August 29, 2025 09:00
@dweindl dweindl requested a review from a team as a code owner August 29, 2025 09:00
@dweindl dweindl enabled auto-merge August 29, 2025 09:00
@dweindl dweindl added this pull request to the merge queue Aug 29, 2025
Merged via the queue into AMICI-dev:main with commit 57d9ea6 Aug 29, 2025
23 of 25 checks passed
@dweindl dweindl deleted the fix_algebraic_time branch August 30, 2025 08:53
dweindl added a commit to dweindl/AMICI that referenced this pull request Nov 2, 2025
Fixes the following error:
```
>           if sbml_var.isSetConstant() and sbml_var.getConstant():
               ^^^^^^^^^^^^^^^^^^^^^^
E           AttributeError: 'NoneType' object has no attribute 'isSetConstant'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants