New error when calling `AttractorsViaRecurrences` (when building the Catalyst docs
bug
We have a section on DynamicalSystems in the Catalyst docs: which includes this code:
```julia
using Catalyst
wilhelm_model = @reaction_network begin
k1, Y --> 2X
k2, 2X --> X + Y
k3, X + Y --> Y
k4, X --> 0
end
u0 = [:X => 0.0, :Y => .0]
tspan = (0.0, 10.0)
ps = [:k1 => 8.0, :k2 => 2.0, :k3 => 1.0, :k4 => 1.5]
oprob = ODEProblem(wilhelm_model, u0, tspan, ps)
using DynamicalSystems, OrdinaryDiffEqTsit5
ds = CoupledODEs(oprob, (alg = Tsit5(),))
# We provide one grid of values for each species. These are then bundled into a tuple.
x_grid = 0.0:0.03:6.0
y_grid = 0.0:0.03:9.0
grid = (x_grid, y_grid)
avr = AttractorsViaRecurrences(ds, grid)
```
Starting today, the last line yields a
```julia
ERROR: MethodError: no method matching Attractors.BasinsInfo(::ArrayBasinsOfAttraction{…}, ::Float64, ::Symbol, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Vector{…}, ::Symbol, ::Bool)
The type `Attractors.BasinsInfo` exists, but no method is defined for this combination of argument types when trying to construct it.
Closest candidates are:
Attractors.BasinsInfo(::A, ::Δ, ::Symbol, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Array{CartesianIndex{D}, 1}, ::Symbol, ::Bool) where {D, Δ, T, V, G<:Attractors.Grid, B<:AbstractArray{Int64, D}, A<:ArrayBasinsOfAttraction{Int64, D, B, T, V, G}}
@ Attractors ~/.julia/packages/Attractors/JorT1/src/mapping/recurrences/attractor_mapping_recurrences.jl:254
Stacktrace:
[1] initialize_basin_info(ds::CoupledODEs{…}, grid_nfo::Attractors.RegularGrid{…}, Δtt::Nothing, sparse::Bool, stop_at_Δt::Bool)
@ Attractors ~/.julia/packages/Attractors/JorT1/src/mapping/recurrences/attractor_mapping_recurrences.jl:295
[2] AttractorsViaRecurrences(ds::CoupledODEs{…}, grid::Tuple{…}; Dt::Nothing, Δt::Nothing, sparse::Bool, force_non_adaptive::Bool, stop_at_Δt::Bool, kwargs::@Kwargs{})
@ Attractors ~/.julia/packages/Attractors/JorT1/src/mapping/recurrences/attractor_mapping_recurrences.jl:153
[3] AttractorsViaRecurrences(ds::CoupledODEs{…}, grid::Tuple{…})
@ Attractors ~/.julia/packages/Attractors/JorT1/src/mapping/recurrences/attractor_mapping_recurrences.jl:133
[4] top-level scope
```
I think this is something recent, as the docs built find yesterday.
This is version info:
```
julia> VERSION
v"1.12.5"
(Environment - Temporary 5) pkg> st
Status `~/Desktop/Julia Playground/Environment - Temporary 5/Project.toml`
[479239e8] Catalyst v15.0.11
[61744808] DynamicalSystems v3.6.7
[b1df2697] OrdinaryDiffEqTsit5 v1.9.0
```
3 条评论