Skip to content

Commit

Permalink
Merge pull request #322 from Neuroblox/fix_image_pixels
Browse files Browse the repository at this point in the history
make pixel values nonzero
  • Loading branch information
anandpathak31 authored Jan 5, 2024
2 parents be287ba + 1d58ea2 commit d9b727c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blox/sources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mutable struct ImageStimulus <: StimulusBlox
reset_eqs = Vector{Equation}(undef, N_pixels)
for i in Base.OneTo(N_pixels)
s = Symbol(param_name, "_", i)
ps[i] = only(@parameters $(s) = 0.0)
ps[i] = only(@parameters $(s) = S[i,1])
reset_eqs[i] = ps[i] ~ 0.0
end

Expand Down

0 comments on commit d9b727c

Please sign in to comment.