Skip to content

Commit

Permalink
Vectorize max (NeuralEnsemble#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
halvarsu authored and alperyeg committed Jul 9, 2018
1 parent fb1eed9 commit b427f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elephant/spike_train_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def inhomogeneous_poisson_process(rate, as_array=False):
'rate at time t')
else:
#Generate n hidden Poisson SpikeTrains with rate equal to the peak rate
max_rate = max(rate)
max_rate = np.max(rate)
homogeneous_poiss = homogeneous_poisson_process(
rate=max_rate, t_stop=rate.t_stop, t_start=rate.t_start)
# Compute the rate profile at each spike time by interpolation
Expand Down

0 comments on commit b427f3b

Please sign in to comment.