Skip to content

Commit

Permalink
fix: safe import for gpunufft.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Dec 18, 2023
1 parent 905001b commit 0a7be76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/simfmri/handlers/acquisition/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
from fmri.operators.fourier import FFT_Sense
from joblib import Parallel, delayed
from mrinufft import get_operator
from mrinufft.operators.interfaces.gpunufft import make_pinned_smaps

try:
from mrinufft.operators.interfaces.gpunufft import make_pinned_smaps
except ImportError:
make_pinned_smaps = None

from tqdm.auto import tqdm

from simfmri.simulation import SimData
Expand Down

0 comments on commit 0a7be76

Please sign in to comment.