Skip to content

Commit

Permalink
Merge pull request #3452 from alejoe91/fix-reset-job-kwargs
Browse files Browse the repository at this point in the history
Fix `reset_global_job_kwargs`
  • Loading branch information
samuelgarcia authored Oct 1, 2024
2 parents 3df1083 + 66a3ea4 commit 0ae32a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/spikeinterface/core/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def is_set_global_dataset_folder() -> bool:


########################################
_default_job_kwargs = dict(n_jobs=1, chunk_duration="1s", progress_bar=True, mp_context=None, max_threads_per_process=1)

global global_job_kwargs
global_job_kwargs = dict(n_jobs=1, chunk_duration="1s", progress_bar=True, mp_context=None, max_threads_per_process=1)
global_job_kwargs = _default_job_kwargs.copy()
global global_job_kwargs_set
global_job_kwargs_set = False

Expand Down Expand Up @@ -135,7 +137,7 @@ def reset_global_job_kwargs():
Reset the global job kwargs.
"""
global global_job_kwargs
global_job_kwargs = dict(n_jobs=1, chunk_duration="1s", progress_bar=True)
global_job_kwargs = _default_job_kwargs.copy()


def is_set_global_job_kwargs_set() -> bool:
Expand Down

0 comments on commit 0ae32a3

Please sign in to comment.