Skip to content

Commit

Permalink
fixed generating rhythmic spiking pattern with 'uniform' option
Browse files Browse the repository at this point in the history
  • Loading branch information
vvbragin committed Jul 5, 2024
1 parent 8c81925 commit 2ca43d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

- Fixed a bug in `gatherDataFromFiles()` where cellGids for node 0 were lost

- Fixed generating rhythmic spiking pattern with 'uniform' option

# Version 1.0.6

**New features**
Expand Down
4 changes: 3 additions & 1 deletion netpyne/cell/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def createRhythmicPattern(params, rand):
# Uniform Distribution
elif distribution == 'uniform':
n_inputs = params['repeats'] * freq * (stop - start) / 1000.0
t_array = rand.uniform(start, stop, int(n_inputs))
rand.uniform(start, stop)
vec = h.Vector(int(n_inputs))
t_array = np.array(vec.setrand(rand))
if eventsPerCycle == 2:
# Two arrays store doublet times
t_input_low = t_array - 5
Expand Down

0 comments on commit 2ca43d0

Please sign in to comment.