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

Try to enable SI on 1.11 #1169

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

isaacsas
Copy link
Member

@isaacsas isaacsas commented Jan 9, 2025

No description provided.

@isaacsas
Copy link
Member Author

isaacsas commented Jan 9, 2025

@TorkelE seems SI extension is still hanging on 1.11.2 so I'm going to close this. Seems we can't yet add it back on any Julia version.

@isaacsas isaacsas closed this Jan 9, 2025
@TorkelE
Copy link
Member

TorkelE commented Jan 9, 2025

that's annoying, but not much to do about

@TorkelE TorkelE reopened this Jan 22, 2025
@isaacsas isaacsas closed this Feb 18, 2025
@TorkelE TorkelE reopened this Mar 9, 2025
@@ -49,7 +49,7 @@ let
ps = rnd_ps(custom_function_network_1, rng; factor)
t = rand(rng)
@test f_eval(custom_function_network_1, u0, ps, t) ≈ f_eval(custom_function_network_2, u0, ps, t)
@test jac_eval(custom_function_network_1, u0, ps, t) ≈ jac_eval(custom_function_network_2, u0, ps, t)
@test_broken jac_eval(custom_function_network_1, u0, ps, t) ≈ jac_eval(custom_function_network_2, u0, ps, t) # Weird error dur to some SciML update. Reported in https://github.com/SciML/ModelingToolkit.jl/issues/3447.
Copy link
Member

Choose a reason for hiding this comment

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

This change is actually done in #1192 (but this PR is based off that one).

@@ -113,7 +113,7 @@ function SI.assess_identifiability(rs::ReactionSystem, args...;
funcs_to_check = make_ftc(funcs_to_check, conseqs, vars)

# Computes identifiability and converts it to a easy to read form.
out = SI.assess_identifiability(osys, args...; measured_quantities,
out = SI.assess_identifiability(osys::ODESystem, args...; measured_quantities,
Copy link
Member

Choose a reason for hiding this comment

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

This is the bit that solves it. What actually goes on is a royal mystery, but there is some discussion here: https://discourse.julialang.org/t/how-to-debug-an-error-in-type-inference/126122/8 and here: SciML/StructuralIdentifiability.jl#360

@TorkelE
Copy link
Member

TorkelE commented Mar 9, 2025

Builds on the change in #1192, however, otherwise this is now ready.

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