From 0ae61b329a47b03136e3046c52987b1e1e1e6a3b Mon Sep 17 00:00:00 2001 From: MartinuzziFrancesco Date: Thu, 27 Mar 2025 14:03:20 +0100 Subject: [PATCH] chore: up DifferentialEquations version in docs, format --- docs/Project.toml | 2 +- src/esn/esn_inits.jl | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 3915bfc4..1dd62c8c 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -12,7 +12,7 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" [compat] CellularAutomata = "0.0.2" -DifferentialEquations = "7.15.0" +DifferentialEquations = "7.16.1" Documenter = "1" OrdinaryDiffEq = "6" Plots = "1" diff --git a/src/esn/esn_inits.jl b/src/esn/esn_inits.jl index f548e16d..143cd1a5 100644 --- a/src/esn/esn_inits.jl +++ b/src/esn/esn_inits.jl @@ -1187,7 +1187,8 @@ function low_connectivity(rng::AbstractRNG, ::Type{T}, dims::Integer...; end function build_cycle(::Val{false}, rng::AbstractRNG, ::Type{T}, res_size::Int; - in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <: Number} + in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <: + Number} reservoir_matrix = DeviceAgnostic.zeros(rng, T, res_size, res_size) for idx in 1:res_size selected = randperm(rng, res_size)[1:in_degree] @@ -1200,7 +1201,8 @@ function build_cycle(::Val{false}, rng::AbstractRNG, ::Type{T}, res_size::Int; end function build_cycle(::Val{true}, rng::AbstractRNG, ::Type{T}, res_size::Int; - in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <: Number} + in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <: + Number} reservoir_matrix = DeviceAgnostic.zeros(rng, T, res_size, res_size) perm = randperm(rng, res_size) for idx in 1:(res_size - 1)