-
-
Notifications
You must be signed in to change notification settings - Fork 210
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: create and solve initialization system in linearization_function #2676
fix: create and solve initialization system in linearization_function #2676
Conversation
function generate_algebraic_initializesystem(sys::ODESystem; | ||
u0map = Dict(), | ||
name = nameof(sys), | ||
guesses = Dict(), check_defguess = false, | ||
default_dd_value = 0.0, | ||
kwargs...) |
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.
It seems like this is a lot of a copy, maybe we can do this instead with some undocumented kwargs in the other?
end | ||
end | ||
|
||
pars = [parameters(sys); get_iv(sys)] | ||
nleqs = [eqs_ics; get_initialization_eqs(sys); observed(sys)] | ||
nleqs = if algebraic_only | ||
eqs_ics |
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.
you always need the observed equations?
0654773
to
009a741
Compare
7e6688e
to
c2a7118
Compare
042abb3
to
cc31bf3
Compare
Looks like there's still linearization tests failing? |
Yeah that's the one I'm having trouble reproducing. It errors in tests, but not when I run the code block manually in the REPL. |
Avoid any redefinition. If I had to guess it could be JuliaLang/julia#52635 cropping back up. If you split the safetestset into different parts does it go away? |
Nope, still errors even in it's own file and |
Start Julia with forced bounds checks. |
Thanks! Found the bug. |
EDIT2: Another correctness issue |
5fd53b8
to
c3a2641
Compare
3898fce
to
d6befb7
Compare
What's the state here? |
|
@oscardssmith I thought this was handled? |
so did I. Was this using the most recent version of SciMLBase? |
Make a PR that bumps it and let's see if master fails. |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.