Skip to content

Commit

Permalink
fix bug in noisy Kuramoto connection
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Jan 16, 2025
1 parent 56a18fe commit ce333e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/blox/connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ function Connector(
end

function Connector(
blox_src::KuramotoOscillator,
blox_dest::KuramotoOscillator;
blox_src::AbstractKuramotoOscillator,
blox_dest::AbstractKuramotoOscillator;
kwargs...
)
sys_src = get_namespaced_sys(blox_src)
Expand Down
6 changes: 4 additions & 2 deletions src/blox/neural_mass.jl
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,9 @@ function kuramoto_oscillator(; name,
noise ? KuramotoOscillatorNoise(name=name, namespace=namespace, ω=ω, ζ=ζ) : KuramotoOscillator(name=name, namespace=namespace, ω=ω)
end

struct KuramotoOscillator <: NeuralMassBlox
abstract type AbstractKuramotoOscillator <: NeuralMassBlox end

struct KuramotoOscillator <: AbstractKuramotoOscillator
params
system
namespace
Expand All @@ -510,7 +512,7 @@ struct KuramotoOscillator <: NeuralMassBlox
end
end

struct KuramotoOscillatorNoise <: NeuralMassBlox
struct KuramotoOscillatorNoise <: AbstractKuramotoOscillator
params
system
namespace
Expand Down

0 comments on commit ce333e6

Please sign in to comment.