Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some fix for sortinganalyzer #2535

Closed
wants to merge 250 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
f06115c
Initial implementaion of SortingResult
samuelgarcia Jan 10, 2024
b23c772
SortingResult more test with ResultExtension
samuelgarcia Jan 11, 2024
1b90437
clean tests
samuelgarcia Jan 11, 2024
8f98ce8
Start zarr for SortingResult
samuelgarcia Jan 12, 2024
452be0d
Merge branch 'improve_zar_sorting' of github.com:samuelgarcia/spikein…
samuelgarcia Jan 12, 2024
9841deb
zarr implementation for SortingResult
samuelgarcia Jan 12, 2024
ff45ab7
Start ComputeWaveforms with ResultExtension
samuelgarcia Jan 12, 2024
4cb07f7
Handle random spikes.
samuelgarcia Jan 14, 2024
2b49c83
Avoid saveing twice memmap
samuelgarcia Jan 15, 2024
789ec91
implementation of ComputeTemplates
samuelgarcia Jan 15, 2024
70f1140
oups
samuelgarcia Jan 15, 2024
1d13b81
SortingResult save mask instead of dict
samuelgarcia Jan 16, 2024
01f9d2e
Merge with estimate sparsity branch
samuelgarcia Jan 17, 2024
6bec81f
Handle sparsity in SortingResult and ResultExtension.
samuelgarcia Jan 17, 2024
9b7ed2a
Implement ComputeFastTemplates
samuelgarcia Jan 17, 2024
013a805
Add spikeinterface_info in SortingResult
samuelgarcia Jan 17, 2024
b9a66d7
yep
samuelgarcia Jan 17, 2024
4a8b54e
Start MockWaveformExtractor for backawrds compatibility
samuelgarcia Jan 18, 2024
2668188
continue MockWaveformExtractor implementation
samuelgarcia Jan 19, 2024
2ecfe6b
SortingResult : small and important details
samuelgarcia Jan 19, 2024
24acdbb
Implement load_waveforms that mimic the old version for backwards com…
samuelgarcia Jan 22, 2024
87daecf
oups
samuelgarcia Jan 23, 2024
c641275
Port spike_amplitudes to SortingResult
samuelgarcia Jan 23, 2024
c5f67f7
Port "correlograms" to SortingResult
samuelgarcia Jan 23, 2024
e53d1b2
Port ISI and noise_level to SortingResult
samuelgarcia Jan 24, 2024
0d73ca6
ComputeNoiseLevels extension in result_core
samuelgarcia Jan 24, 2024
e3e8e2b
Port unit_location into SortingResult
samuelgarcia Jan 24, 2024
d1b4f86
compute_template_metrics and compute_template_similarity ported to So…
samuelgarcia Jan 24, 2024
d3ac13f
Make spike_amplitudes use node_piepeline machinery
samuelgarcia Jan 24, 2024
a3baef8
spike_amplitudes and spikelocations are using nodepipeline
samuelgarcia Jan 24, 2024
f2928cc
Make amplitude scaling with nodepipeline based on Alssio PR.
samuelgarcia Jan 25, 2024
84b6b3e
wip
samuelgarcia Jan 26, 2024
0b90f6b
start to port principal components
samuelgarcia Jan 26, 2024
7afacec
wip
samuelgarcia Jan 26, 2024
b91a27e
Porting pincipal components to SortingRseult
samuelgarcia Jan 29, 2024
ec395ad
ResultExtensionCommonTestSuite.setUpClass
samuelgarcia Jan 29, 2024
dca1322
Handle job_kwargs for extensions
samuelgarcia Jan 29, 2024
49318b1
ResultExtension._get_data
samuelgarcia Jan 29, 2024
a4e355e
Implement nodepipeline several extensions at once
samuelgarcia Feb 1, 2024
b57963d
port quality metrics on sorting result
samuelgarcia Feb 7, 2024
35e5c00
Update with dev branch
samuelgarcia Feb 7, 2024
c2f867a
Fix many conflicts with dev branch
samuelgarcia Feb 7, 2024
4c17930
remove extract_waveforms() from some places
samuelgarcia Feb 8, 2024
a6d8973
remove extract_waveforms() for comparisons module
samuelgarcia Feb 8, 2024
e4ebdc8
Improve MockWaveformExtractor
samuelgarcia Feb 8, 2024
08183c1
Start porting SortingResult on widgets
samuelgarcia Feb 8, 2024
33c6847
wip sorting result and widgets
samuelgarcia Feb 8, 2024
7e0ca59
WIP widgets
samuelgarcia Feb 9, 2024
cec1fd3
wip widgets
samuelgarcia Feb 9, 2024
c465f56
after 0.100 release
samuelgarcia Feb 9, 2024
2809c9e
Widgets are passing tests with SortingResult
samuelgarcia Feb 9, 2024
eb2d8e6
Merge pull request #2398 from samuelgarcia/sorting_result
samuelgarcia Feb 12, 2024
eb29967
Merge pull request #2430 from samuelgarcia/porting_extensions
samuelgarcia Feb 12, 2024
9ad5a0d
wip export_report() and export_to_phy()
samuelgarcia Feb 12, 2024
1845d74
Remove WaveformExtractor at many places in curation/core/export
samuelgarcia Feb 12, 2024
7ed9192
wip
samuelgarcia Feb 12, 2024
9220e95
Starting to generalize templates in SC2 and matching
yger Feb 12, 2024
8fd3781
WIP
yger Feb 12, 2024
4eb829e
Improve sparsity for snr and ptp when using Templates as input
samuelgarcia Feb 12, 2024
4a80aa8
Merge pull request #2480 from samuelgarcia/analyzer
samuelgarcia Feb 12, 2024
da26f38
Apply black
samuelgarcia Feb 12, 2024
8ed14f9
Merge pull request #2482 from samuelgarcia/analyzer
samuelgarcia Feb 12, 2024
6a43277
WIP
yger Feb 13, 2024
87e56a3
WIP
yger Feb 13, 2024
3e7839c
improve WaveformExtractor bacward compatibility
samuelgarcia Feb 13, 2024
b3ea569
WIP
yger Feb 13, 2024
36e85e3
full.py
samuelgarcia Feb 13, 2024
c7b5fc8
More compatibility for plotting.
samuelgarcia Feb 13, 2024
9f0c652
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2024
709c898
Merge branch 'dev' of https://github.com/SpikeInterface/spikeinterfac…
yger Feb 13, 2024
51a7a39
WIP
yger Feb 13, 2024
71f36dd
WIP
yger Feb 13, 2024
faf2619
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2024
28faaf2
Wobble can now use sparsity from Templates
yger Feb 13, 2024
bb8676a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2024
d4892d7
WIP
yger Feb 13, 2024
e21edcd
Merge branch 'templates_matching' of github.com:yger/spikeinterface i…
yger Feb 13, 2024
61c1485
WIP
yger Feb 13, 2024
da0d113
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 13, 2024
dc71e78
small fixes
samuelgarcia Feb 13, 2024
dec0e12
Merge branch 'analyzer' of github.com:samuelgarcia/spikeinterface int…
samuelgarcia Feb 13, 2024
d07ef00
WIP
yger Feb 14, 2024
a98fb2e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2024
7d4ec09
remove empty templates during export to sparse
yger Feb 14, 2024
c63fee2
Merge branch 'templates_matching' of github.com:yger/spikeinterface i…
yger Feb 14, 2024
7988003
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2024
579940c
Noise levels passed as arguments
yger Feb 14, 2024
a183b09
Merge branch 'templates_matching' of github.com:yger/spikeinterface i…
yger Feb 14, 2024
f4819be
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2024
df62847
WIP
yger Feb 14, 2024
fa4b53d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2024
b44f48d
Fix principal component get_projection and pca_metrics.
samuelgarcia Feb 14, 2024
884005c
Cleaning params
yger Feb 14, 2024
28a14b8
Merge branch 'templates_matching' of github.com:yger/spikeinterface i…
yger Feb 14, 2024
abae19d
Merge branch 'dev' of https://github.com/SpikeInterface/spikeinterfac…
yger Feb 14, 2024
7bc93c5
export to phy working
samuelgarcia Feb 14, 2024
9b7530d
Merge pull request #2484 from samuelgarcia/analyzer
samuelgarcia Feb 14, 2024
d4eab0f
More clean
samuelgarcia Feb 14, 2024
9032ace
Revert patch
yger Feb 14, 2024
d9934bb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2024
629fe33
DO NOT MERGE
yger Feb 14, 2024
c3307f2
Merge branch 'templates_matching' of github.com:yger/spikeinterface i…
yger Feb 14, 2024
49f7c0b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2024
302eabe
MOre clean
samuelgarcia Feb 14, 2024
5de4e28
remove_empty_templates()
samuelgarcia Feb 14, 2024
521a097
Update src/spikeinterface/core/sparsity.py
samuelgarcia Feb 14, 2024
e9d268d
Merge pull request #2485 from yger/templates_matching
samuelgarcia Feb 14, 2024
1c691bd
Merge branch 'dev' of github.com:SpikeInterface/spikeinterface into a…
samuelgarcia Feb 14, 2024
46967c1
Fix tests for template matching
samuelgarcia Feb 14, 2024
9e2ccdd
Remoce extract_waveforms from tridesclous2
samuelgarcia Feb 14, 2024
e59b735
tdc2 sparsity
samuelgarcia Feb 14, 2024
b8855e2
Merge pull request #2486 from samuelgarcia/analyzer
samuelgarcia Feb 15, 2024
bb5520c
Rmove more WaveformExtractor
samuelgarcia Feb 15, 2024
1a4bb30
remove extract_waveforms() from temporal_pca
samuelgarcia Feb 15, 2024
1531c6b
Clean some TODOs
samuelgarcia Feb 15, 2024
23b52be
RIP: WaveformExtractor!!
samuelgarcia Feb 15, 2024
db07a42
Merge pull request #2490 from samuelgarcia/analyzer
samuelgarcia Feb 15, 2024
cc7ed9d
minor fixes
samuelgarcia Feb 15, 2024
37c9429
Merge branch 'dev' of github.com:SpikeInterface/spikeinterface into a…
samuelgarcia Feb 16, 2024
a42fa70
Some clean
samuelgarcia Feb 16, 2024
650f37b
And finally after long debate : SortingResult is becoming SortingAnal…
samuelgarcia Feb 16, 2024
b381496
oups
samuelgarcia Feb 16, 2024
c86ca37
Merge pull request #2492 from samuelgarcia/analyzer
samuelgarcia Feb 16, 2024
b9dc753
oups
samuelgarcia Feb 16, 2024
d785946
sorteranalyzer typo fixes
zm711 Feb 16, 2024
01ec862
Update src/spikeinterface/core/sortinganalyzer.py
zm711 Feb 16, 2024
cb200dd
Merge pull request #2496 from zm711/sorting-analyzer-typos
samuelgarcia Feb 16, 2024
5525b0c
Merge branch 'dev' of github.com:SpikeInterface/spikeinterface into a…
samuelgarcia Feb 16, 2024
2438ac7
WIP: switching some docs over
zm711 Feb 16, 2024
1ee81b7
fix a couple typos
zm711 Feb 16, 2024
8dd175b
Merge branch 'dev' into sorting-analyzer-typos
zm711 Feb 16, 2024
09a489a
default for correlograms
samuelgarcia Feb 17, 2024
6f66911
isi default
samuelgarcia Feb 17, 2024
decaa2c
Update miscmetrics docs to say sorting_analyzer
zm711 Feb 17, 2024
f053eb0
various fix
samuelgarcia Feb 20, 2024
69d1f9a
Merge pull request #2495 from samuelgarcia/analyzer
samuelgarcia Feb 20, 2024
f55a03b
Initial benchmark components refactor
samuelgarcia Feb 20, 2024
85c2fbd
WIP
yger Feb 20, 2024
2a41cd1
WIP
yger Feb 20, 2024
7e6bc1e
WIP
yger Feb 21, 2024
35829cb
WIP
yger Feb 21, 2024
874e899
WIP
yger Feb 21, 2024
c70f76f
refactor benchmark estimation
samuelgarcia Feb 21, 2024
578c954
WIP
yger Feb 21, 2024
2449e3c
benchmark : save/load more generic
samuelgarcia Feb 21, 2024
386197b
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
samuelgarcia Feb 21, 2024
ef7cf6f
Merge branch 'benchmark_components' of github.com:samuelgarcia/spikei…
yger Feb 21, 2024
28b4cc4
WIP
yger Feb 21, 2024
bcea8b8
WIP
yger Feb 21, 2024
85e4187
wip
samuelgarcia Feb 21, 2024
c17d694
make sure `compute` includes return value
zm711 Feb 21, 2024
1a0327e
Merge branch 'dev' into sorting-analyzer-typos
zm711 Feb 21, 2024
3a63faf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 21, 2024
0fc81fc
oups
samuelgarcia Feb 22, 2024
3bd98aa
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
samuelgarcia Feb 22, 2024
2fc311c
WIP
yger Feb 22, 2024
ae68ae4
WIP
yger Feb 22, 2024
77d49b3
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
samuelgarcia Feb 22, 2024
898f853
Fix
yger Feb 22, 2024
2950f2f
Small bug fix in zscore : gain / offset must be reset
samuelgarcia Feb 22, 2024
01f7ec9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 22, 2024
a1554c4
Merge branch 'fix_zscore_gain' of github.com:samuelgarcia/spikeinterf…
samuelgarcia Feb 22, 2024
fd5412f
Merge branch 'benchmark_components' of github.com:samuelgarcia/spikei…
yger Feb 22, 2024
a46c1ca
Make return_scaled=True more easy when float32 and no gain_to_uV prop…
samuelgarcia Feb 22, 2024
7241834
more clena in MotionInterpolationBenchmark
samuelgarcia Feb 22, 2024
3ad54a8
Implement run_times in BenchmarkStudy.
samuelgarcia Feb 22, 2024
0aaa645
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
samuelgarcia Feb 22, 2024
568dcde
various fixes
samuelgarcia Feb 22, 2024
fdf4cfa
Merge branch 'main' of github.com:SpikeInterface/spikeinterface into dev
samuelgarcia Feb 23, 2024
12e205d
Merge branch 'dev' of github.com:SpikeInterface/spikeinterface into b…
samuelgarcia Feb 23, 2024
96d7a30
Simple tests for benchmark components.
samuelgarcia Feb 23, 2024
2467535
Wip tests benchmark
samuelgarcia Feb 23, 2024
2a9a487
Merge branch 'dev' of https://github.com/SpikeInterface/spikeinterfac…
yger Feb 23, 2024
0fc0635
Merge pull request #2502 from samuelgarcia/benchmark_components
samuelgarcia Feb 23, 2024
2819ac7
WIP
yger Feb 26, 2024
ed80c83
Merge branch 'dev' of github.com:spikeinterface/spikeinterface into b…
yger Feb 26, 2024
2371758
Change sorting_analyzer.select_random_spikes() into sorting_analyzer.…
samuelgarcia Feb 26, 2024
0dac2fb
Merge branch 'dev' of https://github.com/SpikeInterface/spikeinterfac…
yger Feb 26, 2024
868e27d
estimate_sparsity() also handle probegroup case.
samuelgarcia Feb 26, 2024
8984405
Feedback from Zach on SortingAnalyzer.compute(list)
samuelgarcia Feb 26, 2024
393e927
some clean
samuelgarcia Feb 26, 2024
9733d89
WIP
yger Feb 26, 2024
c957b77
oups
samuelgarcia Feb 26, 2024
abff9b2
oups
samuelgarcia Feb 26, 2024
07d737e
Merge pull request #2514 from samuelgarcia/analyzer
samuelgarcia Feb 26, 2024
af9c0c6
Run spikeinterface_gui using plot_sorting_summary(analyzer, backend="…
samuelgarcia Feb 26, 2024
aff5d54
Merge pull request #2500 from zm711/sorting-analyzer-typos
samuelgarcia Feb 26, 2024
bd1948d
Merge branch 'dev' of github.com:SpikeInterface/spikeinterface into a…
samuelgarcia Feb 26, 2024
57608e3
example rename
samuelgarcia Feb 26, 2024
b385693
wip examples
samuelgarcia Feb 26, 2024
9d60a1b
wip analyzer in examples
samuelgarcia Feb 26, 2024
31c0ffa
ResultExtension > AnalyzerExtension
samuelgarcia Feb 26, 2024
486ef44
Merge pull request #2517 from samuelgarcia/analyzer
samuelgarcia Feb 26, 2024
2825f1b
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
yger Feb 26, 2024
ddf199a
Merge branch 'dev' of github.com:spikeinterface/spikeinterface into b…
yger Feb 26, 2024
9f3668e
Fix test peak localization
yger Feb 26, 2024
2b5c2e5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 26, 2024
ae274db
black
samuelgarcia Feb 27, 2024
5cd00e4
Merge pull request #2519 from samuelgarcia/analyzer
samuelgarcia Feb 27, 2024
dd44cf8
WIP
yger Feb 27, 2024
8cfb19a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 27, 2024
1d7f796
analyzer in howto analyze_neuropixel
samuelgarcia Feb 27, 2024
1ccd7df
wip
yger Feb 27, 2024
1e7dd75
WIP
yger Feb 27, 2024
8609fc4
Fix a bug in Silence_period
yger Feb 27, 2024
0bbc8b1
Fix in benchmarks
yger Feb 27, 2024
a0cf6c7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 27, 2024
ccadee4
WIP
yger Feb 28, 2024
7d115a5
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
yger Feb 28, 2024
088d4c4
WIP
yger Feb 28, 2024
e459f73
Default no cache for Windows
yger Feb 28, 2024
90089bb
rebirth of simple_sorter in spikeinterface
samuelgarcia Feb 28, 2024
586cf76
yep
samuelgarcia Feb 28, 2024
a9aa2f4
typos
yger Feb 28, 2024
c77c08a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 28, 2024
371299f
Merge pull request #2524 from samuelgarcia/simple_sorter
samuelgarcia Feb 28, 2024
3b7858f
WIP
yger Feb 28, 2024
163f218
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
yger Feb 28, 2024
bea6c1b
Conflict
yger Feb 28, 2024
6142697
Conflict
yger Feb 28, 2024
f82d760
Conflict
yger Feb 28, 2024
fcfe8f8
WIP
yger Feb 29, 2024
9c3d5ca
Fix sparsity check for old waveform extractor
chrishalcrow Feb 29, 2024
4477f74
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
c473277
Playing with simple sorter
yger Feb 29, 2024
88676e5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
86b99f9
WIP
yger Feb 29, 2024
7527d3e
WIP
yger Feb 29, 2024
8755144
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 29, 2024
50cca53
WIP
yger Mar 1, 2024
00340ed
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 1, 2024
8a2a23c
Cleaning
yger Mar 1, 2024
e9223dd
WIP
yger Mar 1, 2024
e156f0a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 1, 2024
1a5eac3
Add the cache for simple sorter
yger Mar 1, 2024
5150978
Merge branch 'benchmark_matching' of github.com:yger/spikeinterface i…
yger Mar 1, 2024
9c3108c
Fixes in benchmarks
yger Mar 1, 2024
1a2cbea
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 1, 2024
019c797
Plots for detection
yger Mar 1, 2024
d739728
WIP on benchmarks
yger Mar 1, 2024
3a18ec4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 1, 2024
8c9cef5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
cba3d06
Merge branch 'main' into dev
samuelgarcia Mar 4, 2024
efec1ee
Merge pull request #2526 from chrishalcrow/sparsity_check
samuelgarcia Mar 4, 2024
c7c1335
Merge pull request #2518 from yger/benchmark_matching
samuelgarcia Mar 4, 2024
38fc6b4
oups
samuelgarcia Mar 4, 2024
3bd1ad4
Merge pull request #2520 from samuelgarcia/analyzer
samuelgarcia Mar 4, 2024
70cb10d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
bcdf295
revert cache_preprocessing in simple_sorter
samuelgarcia Mar 4, 2024
902106b
Make pandas weak import for pandas in core
samuelgarcia Mar 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions dev_pool.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import multiprocessing
from concurrent.futures import ProcessPoolExecutor

def f(x):
import os
# global _worker_num
p = multiprocessing.current_process()
print(p, type(p), p.name, p._identity[0], type(p._identity[0]), p.ident)
return x * x


def init_worker(lock, array_pid):
print(array_pid, len(array_pid))
child_process = multiprocessing.current_process()

lock.acquire()
num_worker = None
for i in range(len(array_pid)):
print(array_pid[i])
if array_pid[i] == -1:
num_worker = i
array_pid[i] = child_process.ident
break
print(num_worker, child_process.ident)
lock.release()

num_worker = 6
lock = multiprocessing.Lock()
array_pid = multiprocessing.Array('i', num_worker)
for i in range(num_worker):
array_pid[i] = -1


# with ProcessPoolExecutor(
# max_workers=4,
# ) as executor:
# print(executor._processes)
# results = executor.map(f, range(6))

with ProcessPoolExecutor(
max_workers=4,
initializer=init_worker,
initargs=(lock, array_pid)
) as executor:
print(executor._processes)
results = executor.map(f, range(6))

exit()
# global _worker_num
# def set_worker_index(i):
# global _worker_num
# _worker_num = i

p = multiprocessing.Pool(processes=3)
# children = multiprocessing.active_children()
# for i, child in enumerate(children):
# child.submit(set_worker_index)

# print(children)
print(p.map(f, range(6)))
p.close()
p.join()

p = multiprocessing.Pool(processes=3)
print(p.map(f, range(6)))
print(p.map(f, range(6)))

p.close()
p.join()


# print(multiprocessing.current_process())
# p = multiprocessing.current_process()
# print(p._identity)
7 changes: 4 additions & 3 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ spikeinterface.core
:members:
.. autoclass:: BaseEvent
:members:
.. autoclass:: WaveformExtractor
.. autoclass:: SortingAnalyzer
:members:
.. autofunction:: extract_waveforms
.. autofunction:: load_waveforms
.. autofunction:: create_sorting_analyzer
.. autofunction:: load_sorting_analyzer
.. autofunction:: compute_sparsity
.. autofunction:: estimate_sparsity
.. autoclass:: ChannelSparsity
:members:
.. autoclass:: BinaryRecordingExtractor
Expand Down
Loading
Loading