Skip to content

Commit

Permalink
FIX: use threading multiprocessing backend to still get proper stdouts
Browse files Browse the repository at this point in the history
  • Loading branch information
swkeemink committed Jul 9, 2021
1 parent 8005d83 commit acadd13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fissa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def separation_prep(self, redo=False):

if use_multiprocessing:
# run extraction
outputs = Parallel(n_jobs=self.ncores_separation)(
outputs = Parallel(n_jobs=self.ncores_separation, backend="threading")(
delayed(_extract_cfg)(self.images[i], self.rois[i])
for i in tqdm.tqdm(
range(self.nTrials),
Expand Down Expand Up @@ -922,7 +922,7 @@ def separate(self, redo_prep=False, redo_sep=False):

# Do the extraction
if use_multiprocessing:
outputs = Parallel(n_jobs=self.ncores_separation)(
outputs = Parallel(n_jobs=self.ncores_separation, backend="threading")(
delayed(_separate_cfg)(self.raw[i], i)
for i in tqdm.tqdm(
range(self.nCell),
Expand Down

0 comments on commit acadd13

Please sign in to comment.