Skip to content

Commit

Permalink
Hacky fix to inconsistent PyNN/Nest time in stimulation with current …
Browse files Browse the repository at this point in the history
…source

Should be removed once issue NeuralEnsemble/PyNN#759
gets fixed.
  • Loading branch information
rozsatib committed May 5, 2023
1 parent c2be718 commit eb517f7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mozaik/models/vision/spatiotemporalfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,14 @@ def provide_null_input(self, visual_space, duration=None, offset=0):
List of 2D arrays containing the frames of luminances that were presented to the retina.
"""
times = numpy.array([offset,duration-visual_space.update_interval+offset])#numpy.arange(0, duration, visual_space.update_interval) + offset
zers = numpy.zeros_like(times)
# HAAACK!
# Currently, we need to set the start time of stimulation to
# offset + 3*timestep, until the following issue is resolved:
# https://github.com/NeuralEnsemble/PyNN/issues/759.
# TODO: Remove once this gets fixed (hopefully in PyNN 0.11.0)!
ts = self.model.sim.get_time_step()
times = numpy.array([offset + 3 * ts,duration-visual_space.update_interval+offset])
zers = numpy.zeros_like(times)

input_cells = OrderedDict()
for rf_type in self.rf_types:
Expand Down

0 comments on commit eb517f7

Please sign in to comment.