Skip to content

Commit

Permalink
joblib parallel
Browse files Browse the repository at this point in the history
Former-commit-id: 7a47740
  • Loading branch information
Kevin Qu committed Jun 21, 2022
1 parent 4f24fd6 commit cbfe87a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions imgtools/autopipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ def run(self):
print("Dataset already processed...")
shutil.rmtree(pathlib.Path(self.output_directory, ".temp").as_posix())
else:
# Parallel(n_jobs=self.n_jobs, verbose=verbose)(
# delayed(self._process_wrapper)(subject_id) for subject_id in subject_ids)
for subject_id in subject_ids:
self._process_wrapper(subject_id)
Parallel(n_jobs=self.n_jobs, verbose=verbose)(
delayed(self._process_wrapper)(subject_id) for subject_id in subject_ids)
# for subject_id in subject_ids:
# self._process_wrapper(subject_id)
self.save_data()

def main():
Expand Down

0 comments on commit cbfe87a

Please sign in to comment.