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

fix: fix several bugs related to remake and symbolic indexing #583

Closed
wants to merge 4 commits into from

Conversation

AayushSabharwal
Copy link
Member

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 2, 2024

Codecov Report

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

Comparison is base (350e3d8) 39.44% compared to head (7ca2602) 0.00%.
Report is 81 commits behind head on master.

Files Patch % Lines
src/remake.jl 0.00% 26 Missing ⚠️
src/solutions/rode_solutions.jl 0.00% 11 Missing ⚠️
src/problems/problem_interface.jl 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #583       +/-   ##
==========================================
- Coverage   39.44%   0.00%   -39.45%     
==========================================
  Files          53      53               
  Lines        4039    3964       -75     
==========================================
- Hits         1593       0     -1593     
- Misses       2446    3964     +1518     

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

@@ -0,0 +1,118 @@
using ModelingToolkit, SymbolicIndexingInterface
Copy link
Member

Choose a reason for hiding this comment

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

Can you add JumpSystems to JumpProblems into this test to? (Which requires JumpProcesses?)

Note that JumpProblem is defined in JumpProcesses and has some remake related dispatches there that might need to be updated (basically they just forward all updates to the wrapped prob, i.e. jump_problem.prob which is usually a discrete or ODE problem).

Copy link
Member Author

Choose a reason for hiding this comment

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

Resolved in d4d5466

@ChrisRackauckas
Copy link
Member

Add some inference tests as well.

refactor: add JumpProblem to remake tests
@ChrisRackauckas
Copy link
Member

What's next here?

@AayushSabharwal
Copy link
Member Author

Nothing, it just needs this to be tagged first, which I assume will happen with MTKv9

@ChrisRackauckas
Copy link
Member

Looks like there's a circle where tests can't pass?

@AayushSabharwal
Copy link
Member Author

MTK tests should pass regardless of this PR

@ChrisRackauckas
Copy link
Member

What's the status of this one?

@AayushSabharwal
Copy link
Member Author

This PR needs SciML/ModelingToolkit.jl#2409 to be tagged

@AayushSabharwal
Copy link
Member Author

TODO: Symbolic remake won't work with SymbolCache as the system as user-provided symbols. I think now that SII exists, process_p_u0_symbolic should be able to be implemented in SciMLBase and be independent of where the symbols come from?

@AayushSabharwal
Copy link
Member Author

CI won't pass here until SciML/ModelingToolkit.jl#2409 is merged and tagged. I also have plans to remove process_p_u0_symbolic from MTK and just handle it in SciMLBase using SII. This would allow for symbolic initialization using DSLs (SymbolCache) as well.

@AayushSabharwal AayushSabharwal marked this pull request as draft February 2, 2024 05:37
@isaacsas
Copy link
Member

Is there any update on this or the PRs this requires before it can be merged?

@AayushSabharwal
Copy link
Member Author

This PR is too old to be merged, and the required changes are now different than what this PR intended. I'll open a new one soon

@AayushSabharwal AayushSabharwal deleted the as/bug-fixes branch February 26, 2024 12:50
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.

3 participants