Skip to content

ReturnDataView.{preeq,posteq}_status to list[SteadyStateStatus]; squeeze numsteps#2954

Merged
dweindl merged 1 commit intoAMICI-dev:mainfrom
dweindl:gh1944_rdv
Oct 3, 2025
Merged

ReturnDataView.{preeq,posteq}_status to list[SteadyStateStatus]; squeeze numsteps#2954
dweindl merged 1 commit intoAMICI-dev:mainfrom
dweindl:gh1944_rdv

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Oct 1, 2025

BREAKING CHANGE

  • ReturnDataView.posteq_numsteps and ReturnDataView.posteq_numsteps now return a one-dimensional array of shape (num_timepoints,) instead of a two-dimensional array of shape (1, num_timepoints).
  • ReturnDataView.posteq_status and ReturnDataView.preeq_status now return list[SteadyStateStatus] instead of an ndarray[int] of shape (1, 3). Closes ReturnDataView.{preeq,posteq}_status should be 1D-arrays #1944.

@dweindl dweindl added the breaking change Issue changes API in backwards-incompatible way label Oct 1, 2025
@dweindl dweindl self-assigned this Oct 1, 2025
@codecov
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.98%. Comparing base (dcbbae0) to head (a55d710).
⚠️ Report is 130 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2954      +/-   ##
==========================================
- Coverage   76.60%   75.98%   -0.62%     
==========================================
  Files         307      307              
  Lines       20134    20136       +2     
  Branches     1553     1554       +1     
==========================================
- Hits        15423    15300     -123     
- Misses       4698     4823     +125     
  Partials       13       13              
Flag Coverage Δ
cpp 72.17% <100.00%> (+0.05%) ⬆️
cpp_python 37.92% <100.00%> (+<0.01%) ⬆️
petab 38.97% <50.00%> (+<0.01%) ⬆️
python 69.81% <100.00%> (+0.05%) ⬆️
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/numpy.py 87.82% <100.00%> (+0.21%) ⬆️

... and 7 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 October 1, 2025 09:48
@dweindl dweindl requested a review from a team as a code owner October 1, 2025 09:48
…squeeze numsteps

* `ReturnDataView.posteq_numsteps` and `ReturnDataView.posteq_numsteps` now
  return a one-dimensional array of shape `(num_timepoints,)` instead of a
  two-dimensional array of shape `(1, num_timepoints)`.
* `ReturnDataView.posteq_status` and `ReturnDataView.preeq_status` now
  return `list[SteadyStateStatus]` instead of an `ndarray[int]` of shape
  `(1, 3)`.
  Closes AMICI-dev#1944.
@dweindl dweindl added this pull request to the merge queue Oct 3, 2025
Merged via the queue into AMICI-dev:main with commit 28a2b59 Oct 3, 2025
17 of 18 checks passed
@dweindl dweindl deleted the gh1944_rdv branch October 3, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Issue changes API in backwards-incompatible way

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReturnDataView.{preeq,posteq}_status should be 1D-arrays

2 participants