Skip to content

Commit

Permalink
fix docstring and error
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Jul 29, 2024
1 parent df76f94 commit 4b83e8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spikeinterface/postprocessing/spike_amplitudes.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class ComputeSpikeAmplitudes(AnalyzerExtension):
The localization method to use
method_kwargs : dict, default: dict()
Other kwargs depending on the method.
outputs : "concatenated" | "by_unit", default: "concatenated"
The output format
outputs : "numpy" | "by_unit", default: "numpy"
The output format, either concatenated as numpy array or separated on a per unit basis
Returns
-------
Expand Down Expand Up @@ -148,7 +148,7 @@ def _get_data(self, outputs="numpy"):
amplitudes_by_units[segment_index][unit_id] = all_amplitudes[inds]
return amplitudes_by_units
else:
raise ValueError(f"Wrong .get_data(outputs={outputs})")
raise ValueError(f"Wrong .get_data(outputs={outputs}); possibilities are `numpy` or `by_unit`")


register_result_extension(ComputeSpikeAmplitudes)
Expand Down

0 comments on commit 4b83e8b

Please sign in to comment.