Skip to content

Commit 43691c4

Browse files
author
Sam Buercklin
committed
fixed sim_update bug with neurons, fixed warning vs @warn in defs.jl
1 parent 3ed8025 commit 43691c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/defs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Evolve the `WaspnetElement` subject to an input `input` a duration of time `dt`
66
function update!(ne::WaspnetElement, input, dt, t) end
77

88
function update!(ne::AbstractNeuron, input, dt, t)
9-
warning("Neurons should use update, not update! function")
9+
@warn "Neurons should use update, not update! function"
1010
return update(ne, input, dt, t)
1111
end
1212

@@ -18,7 +18,7 @@ Reset the `WaspnetElement` to a default state defined by the method.
1818
function reset!(ne::WaspnetElement) end
1919

2020
function reset!(ne::AbstractNeuron, input, dt, t)
21-
warning("Neurons should use reset, not reset! function")
21+
@warn "Neurons should use reset, not reset! function"
2222
return reset(ne, input, dt, t)
2323
end
2424

src/simulate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ end
123123
Wrapper to ensure that if a 1D array is passed to update a neuron, it is converted to a scalar first
124124
"""
125125
function sim_update!(neuron::AbstractNeuron, input_update::AbstractArray{T,N}, dt, t) where {T<:Number, N}
126-
return update!(neuron, input_update[1], dt, t)
126+
return update(neuron, input_update[1], dt, t)
127127
end

0 commit comments

Comments
 (0)