Skip to content

Commit

Permalink
remove copy statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Nov 19, 2024
1 parent 123ca04 commit 6c0e8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elephant/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1178,12 +1178,12 @@ def time_histogram(spiketrains, bin_size, t_start=None, t_stop=None,

def _counts() -> pq.Quantity:
# 'counts': spike counts at each bin (as integer numbers).
return pq.Quantity(bin_hist, units=pq.dimensionless, copy=False)
return pq.Quantity(bin_hist, units=pq.dimensionless)

def _mean() -> pq.Quantity:
# 'mean': mean spike counts per spike train.
return pq.Quantity(bin_hist / len(spiketrains),
units=pq.dimensionless, copy=False)
units=pq.dimensionless)

def _rate() -> pq.Quantity:
# 'rate': mean spike rate per spike train. Like 'mean', but the
Expand Down

0 comments on commit 6c0e8d4

Please sign in to comment.