Skip to content

Commit 92ea609

Browse files
committed
Move 'in Hz' to description for sampling frequency docstring.
1 parent c7b5aa6 commit 92ea609

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/spikeinterface/core/generate.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def generate_recording(
4242
----------
4343
num_channels : int, default: 2
4444
The number of channels in the recording.
45-
sampling_frequency : float, default: 30000. (in Hz)
46-
The sampling frequency of the recording, default: 30000.
45+
sampling_frequency : float, default: 30000.0
46+
The sampling frequency of the recording in Hz
4747
durations : list[float], default: [5.0, 2.5]
4848
The duration in seconds of each segment in the recording, default: [5.0, 2.5].
4949
Note that the number of segments is determined by the length of this list.
@@ -105,7 +105,7 @@ def generate_sorting(
105105
num_units : int, default: 5
106106
Number of units.
107107
sampling_frequency : float, default: 30000.0
108-
The sampling frequency.
108+
The sampling frequency of the recording in Hz.
109109
durations : list, default: [10.325, 3.5]
110110
Duration of each segment in s.
111111
firing_rates : float, default: 3.0
@@ -525,8 +525,8 @@ def from_times_labels(
525525
An array of spike times (in frames).
526526
labels_list : list[np.array] | np.array
527527
An array of spike labels corresponding to the given times.
528-
sampling_frequency : float, default: 30000. (in Hz)
529-
The sampling frequency of the recording, default: 30000.
528+
sampling_frequency : float, default: 30000.0
529+
The sampling frequency of the recording in Hz.
530530
unit_ids : list | None, default: None
531531
The explicit list of unit_ids that should be extracted from labels_list
532532
If None, then it will be np.unique(labels_list).
@@ -615,8 +615,8 @@ def generate_snippets(
615615
Number of channels.
616616
wf_folder : str | Path | None, default: None
617617
Optional folder to save the waveform snippets. If None, snippets are in memory.
618-
sampling_frequency : float, default: 30000.0 (in Hz)
619-
The sampling frequency of the snippets.
618+
sampling_frequency : float, default: 30000.0
619+
The sampling frequency of the snippets in Hz.
620620
ndim : int, default: 2
621621
The number of dimensions of the probe.
622622
num_units : int, default: 5
@@ -692,7 +692,7 @@ def synthesize_poisson_spike_vector(
692692
----------
693693
num_units : int, default: 20
694694
Number of neuronal units to simulate.
695-
sampling_frequency : float, default: 30000.0 (in Hz)
695+
sampling_frequency : float, default: 30000.0
696696
Sampling frequency in Hz.
697697
duration : float, default: 60.0
698698
Duration of the simulation in seconds.
@@ -797,8 +797,8 @@ def synthesize_random_firings(
797797
----------
798798
num_units : int, default: 20
799799
Number of units.
800-
sampling_frequency : float, default: 30000.0 (in Hz)
801-
Sampling rate.
800+
sampling_frequency : float, default: 30000.0
801+
Sampling rate in Hz.
802802
duration : float, default: 60
803803
Duration of the segment in seconds.
804804
refractory_period_ms : float, default: 4.0

0 commit comments

Comments
 (0)