Skip to content

Commit 1f52715

Browse files
samuelgarciazm711
andauthored
Merci Zach
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
1 parent 9111c13 commit 1f52715

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/spikeinterface/core/node_pipeline.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@ def run_node_pipeline(
484484
skip_after_n_peaks=None,
485485
):
486486
"""
487-
Machinery to compute in paralell operations on peaks and traces.
487+
Machinery to compute in parallel operations on peaks and traces.
488488
489-
This usefull in several use cases:
489+
This useful in several use cases:
490490
* in sortingcomponents : detect peaks and make some computation on then (localize, pca, ...)
491491
* in sortingcomponents : replay some peaks and make some computation on then (localize, pca, ...)
492492
* postprocessing : replay some spikes and make some computation on then (localize, pca, ...)
@@ -498,13 +498,13 @@ def run_node_pipeline(
498498
Every node is doing a computaion of some peaks and related traces.
499499
The first node is PeakSource so either a peak detector PeakDetector or peak/spike replay (PeakRetriever/SpikeRetriever)
500500
501-
Every can have one or several output that can be directed to other nodes (aka nodes have parents).
501+
Every node can have one or several output that can be directed to other nodes (aka nodes have parents).
502502
503-
Every node can optionaly have an global output that will be globaly gather by the main process.
503+
Every node can optionally have a global output that will be gathered by the main process.
504504
This is controlled by return_output = True.
505505
506506
The gather consists of concatenating features related to peaks (localization, pca, scaling, ...) into a single big vector.
507-
Theses vector can be in "memory" or in file ("npy")
507+
These vectors can be in "memory" or in files ("npy")
508508
509509
510510
Parameters
@@ -523,15 +523,15 @@ def run_node_pipeline(
523523
gather_kwargs : dict
524524
OPtions to control the "gather engine". See GatherToMemory or GatherToNpy.
525525
squeeze_output : bool, default True
526-
If only one output node, the, squeeze the tuple
526+
If only one output node then squeeze the tuple
527527
folder : str | Path | None
528528
Used for gather_mode="npz"
529529
names : list of str
530530
Names of outputs.
531531
verbose : bool, default False
532532
Verbosity.
533533
skip_after_n_peaks : None | int
534-
Skip the computaion after n_peaks.
534+
Skip the computation after n_peaks.
535535
This is not an exact because internally this skip is done per worker in average.
536536
537537
Returns

src/spikeinterface/core/tests/test_node_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_skip_after_n_peaks():
219219

220220

221221

222-
222+
# the following is for testing locally with python or ipython. It is not used in ci or with pytest.
223223
if __name__ == "__main__":
224224
# folder = Path("./cache_folder/core")
225225
# test_run_node_pipeline(folder)

0 commit comments

Comments
 (0)