Skip to content

Commit

Permalink
fixed: return AnalogSignal with transposed dimensions for pool_trials…
Browse files Browse the repository at this point in the history
…=True and pool_spike_trains=False
  • Loading branch information
Moritz-Alexander-Kern committed Oct 31, 2023
1 parent 8f758fe commit 447998a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elephant/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def instantaneous_rate(spiketrains, sampling_period, kernel='auto',
)

list_of_average_rates_cross_trial = neo.AnalogSignal(
signal=list(average_rate_cross_trials),
signal=np.array(list(average_rate_cross_trials)).transpose(),
sampling_period=rates_cross_trials[0].sampling_period,
units=rates_cross_trials[0].units,
t_start=rates_cross_trials[0].t_start,
Expand Down

0 comments on commit 447998a

Please sign in to comment.