Skip to content

Commit

Permalink
Fix nibabel use with python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaRenauld committed Mar 1, 2023
1 parent 50f4e90 commit 7fe5fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scilpy/tracking/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from time import perf_counter
from typing import Union

import nibabel as nib
from nibabel.tmpdirs import InTemporaryDirectory
import numpy as np

from dipy.data import get_sphere
Expand Down Expand Up @@ -133,7 +133,7 @@ def track(self):
else:
# Each process will use get_streamlines_at_seeds
chunk_ids = np.arange(self.nbr_processes)
with nib.tmpdirs.InTemporaryDirectory() as tmpdir:
with InTemporaryDirectory() as tmpdir:

pool = self._prepare_multiprocessing_pool(tmpdir)

Expand Down

0 comments on commit 7fe5fba

Please sign in to comment.