Skip to content

Commit

Permalink
fix #91 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau authored Apr 15, 2024
1 parent a12ee65 commit 3552a56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/mrinufft/operators/interfaces/bart.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
from mrinufft.io.cfl import traj2cfl, _writecfl, _readcfl

# available if return code is 0
BART_AVAILABLE = not subp.call(
["which", "bart"], stdout=subp.DEVNULL, stderr=subp.DEVNULL
)
try:
BART_AVAILABLE = not subp.call(
["which", "bart"], stdout=subp.DEVNULL, stderr=subp.DEVNULL
)
except Exception:
BART_AVAILABLE = False


class RawBartNUFFT:
Expand Down

0 comments on commit 3552a56

Please sign in to comment.