Skip to content

Commit

Permalink
Merge pull request #3269 from zm711/error-message
Browse files Browse the repository at this point in the history
Fix docstring and error for spike_amplitudes
  • Loading branch information
alejoe91 authored Jul 30, 2024
2 parents 0bdbc43 + 4b83e8b commit f5e6bea
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 f5e6bea

Please sign in to comment.