Skip to content
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

feat: improve getu/setu/getp/setp handling of nested variables #33

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

AayushSabharwal
Copy link
Member

  • also addresses type-stability of the closures returned from the above functions

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 75 lines in your changes are missing coverage. Please review.

Comparison is base (a7e0efb) 32.59% compared to head (07d1e73) 28.35%.

Files Patch % Lines
src/state_indexing.jl 0.00% 66 Missing ⚠️
src/parameter_indexing.jl 47.05% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
- Coverage   32.59%   28.35%   -4.24%     
==========================================
  Files           7        7              
  Lines         181      201      +20     
==========================================
- Hits           59       57       -2     
- Misses        122      144      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- also addresses type-stability of the closures returned from the above functions
@AayushSabharwal AayushSabharwal linked an issue Jan 15, 2024 that may be closed by this pull request
Datseris added a commit to JuliaDynamics/DynamicalSystemsBase.jl that referenced this pull request Jan 16, 2024
Copy link
Member

@YingboMa YingboMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but still needs formatting.

@ChrisRackauckas ChrisRackauckas merged commit cf2aae7 into master Jan 24, 2024
8 of 11 checks passed
@ChrisRackauckas ChrisRackauckas deleted the as/getu-improved branch January 24, 2024 12:07
Datseris added a commit to JuliaDynamics/DynamicalSystemsBase.jl that referenced this pull request Jan 25, 2024
…m and get state (#190)

* fix the successful step function not having nan

* mtk integration works

* improve docs

* get state also works with symbolics!

* add changelog

* add MTK to test deps

* mention MTK interfacing in CoupledODEs

* rename current_state to observe_State

* MTK works woth stroboscopic

* ProjectedDS works as well

* remove unecessary set_parameter extensions

* finish MTK integration

* export the function referrencing the system

* use getu/setu directly on numeric containers

Requires SciML/SymbolicIndexingInterface.jl#33 to be merged!

* make sure tests pass

* simplify referrenced sys function: we only need sys now

* all tests pass!

* finish changelog

* better/clearer handling of observation index

* use the referrenced SciML Problem instead of System!

* correct retrieval of referrenced system

* allow `set_u` to set a specific component of the system! with symbolic!

* make sure function is only used with core systems

* Throw error if no referrenced MTK

* simplify set_state!@

* fix set state for parallel systems

* request merged and tagged functionality

* trigger tests

* fix tests

* update docs

* finish changelog

* correct set_paramters!

* remove examples from index

* fix stroboscopic tests

* fix successful step tests

* fix docs!
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.

Allow getu to be used directly on the state vector?
3 participants