Skip to content

Commit

Permalink
mp context
Browse files Browse the repository at this point in the history
  • Loading branch information
luiztauffer committed Apr 25, 2024
1 parent e4446b2 commit 23f2921
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class JobKwargs(BaseModel):
n_jobs: float = Field(default=0.8, description='Number of jobs, must be a positive number between 0 and 1, or -1 for all processors.')
chunk_duration: str = Field(default='1s', description='Chunk duration.')
progress_bar: bool = Field(default=False, description='Show progress bar.')
mp_context: str = Field(
default="spawn",
description='Context for multiprocessing. It can be "fork" or "spawn".',
json_schema_extra={'options': ["fork", "spawn"]},
)


# ------------------------------
Expand Down
6 changes: 3 additions & 3 deletions si_mountainsort5/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ pynwb
pyvips==2.2.2
neuroconv
mountainsort5==0.5.6
# spikeinterface[full]==0.100.5
# spikeinterface_pipelines
# dendro==0.2.14
# spikeinterface[full]>=0.100.5
# spikeinterface_pipelines>=0.0.11
# dendro>=0.2.14

0 comments on commit 23f2921

Please sign in to comment.