Skip to content

Commit

Permalink
Zach the typos killer
Browse files Browse the repository at this point in the history
Co-authored-by: Zach McKenzie <[email protected]>
  • Loading branch information
samuelgarcia and zm711 authored Nov 22, 2023
1 parent ff9d0ba commit b5d870f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spikeinterface/core/basesorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ def count_num_spikes_per_unit(self, outputs="dict"):
Parameters
----------
outputs: "dict" | "array", dfault: "dict"
outputs: "dict" | "array", default: "dict"
Control the type of the returned object: a dict (keys are unit_ids) or an numpy array.
Returns
-------
dict or numpy.array
Dict : Dictionary with unit_ids as key and number of spikes as values
Numpy array : array of size len(unit_ids) in the same orderas unit_ids.
Numpy array : array of size len(unit_ids) in the same order as unit_ids.
"""
num_spikes = np.zeros(self.unit_ids.size, dtype="int64")

Expand Down Expand Up @@ -320,7 +320,7 @@ def count_num_spikes_per_unit(self, outputs="dict"):
num_spikes = dict(zip(self.unit_ids, num_spikes))
return num_spikes
else:
raise ValueError("count_num_spikes_per_unit() output must be dict or array")
raise ValueError("count_num_spikes_per_unit() output must be 'dict' or 'array'")

def count_total_num_spikes(self):
"""
Expand Down

0 comments on commit b5d870f

Please sign in to comment.