-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
towards BifurcationKit @0.4 #3102
Conversation
|
Yes it is to ensure that the parameter axis is an int or an @optic (from accessors.jl) |
Note that you don't need setfield anymore and it is re exported by BK. Not sure why you put it back |
|
I am confused. In [email protected] I replaced Setfield by Accessors. They should not be any
Yes. It is to allow to pass |
replace the line https://github.com/SciML/ModelingToolkit.jl/blob/master/test/extensions/bifurcationkit.jl#L39 with |
LoadError: MethodError: no method matching (::Main.var"##BifurcationKit Extension Test#289".var"#2#6")(::Vector{Float64}, ::Float64; iter::BifurcationKit.ContIterable{BifurcationKit.EquilibriumCont, BifurcationKit.BifurcationProblem{BifurcationKit.BifFunction{Main.var"##BifurcationKit Extension Test#289".var"#f_BK#5", BifurcationKit.var"#8#24", Nothing, BifurcationKit.var"#6#22", Nothing, BifurcationKit.var"#11#28"{BifurcationKit.var"#d1Fad#26"}, BifurcationKit.var"#13#30", BifurcationKit.var"#15#32", BifurcationKit.var"#17#34", Bool, Float64}, Vector{Float64}, Vector{Float64}, Accessors.IndexLens{Tuple{Int64}}, typeof(BifurcationKit.plot_default), Main.var"##BifurcationKit Extension Test#289".var"#2#6", typeof(BifurcationKit.save_solution_default)}, BifurcationKit.PALC{BifurcationKit.Secant, BifurcationKit.MatrixBLS{BifurcationKit.DefaultLS}, Float64, BifurcationKit.DotTheta{BifurcationKit.var"#279#281", BifurcationKit.var"#280#282"}}, Float64, BifurcationKit.DefaultLS, BifurcationKit.DefaultEig{typeof(real)}, typeof(LinearAlgebra.norm), typeof(BifurcationKit.finalise_default), typeof(BifurcationKit.cb_default), Nothing}, state::BifurcationKit.ContState{BifurcationKit.BorderedArray{Vector{Float64}, Float64}, Float64, Vector{ComplexF64}, Matrix{ComplexF64}, Tuple{Nothing, Nothing}})
Closest candidates are:
(::Main.var"##BifurcationKit Extension Test#289".var"#2#6")(::Any, ::Any) got unsupported keyword arguments "iter", "state"
@ Main.var"##BifurcationKit Extension Test#289" ~/work/ModelingToolkit.jl/ModelingToolkit.jl/test/extensions/bifurcationkit.jl:40 Is this from some anonymous function generated by optic? I have no idea what's going on here or what |
What caused it? A test? I dont see the line number of the closest candidates. I bet this is coming from
When I submitted the PR, I made sure that the current MTK doc-page worked, so I am surprised by all this. |
An optic is from Accessors.jl
and would like to continue the solutions wrt to a, you can pass |
Awesome, thanks so much! |
No problem. I am embarassed, I thought my PR would have been more straightforward |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.