Skip to content

Commit

Permalink
fix rebase mess
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed May 15, 2024
1 parent 6d3d3e4 commit 559c8a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions niworkflows/interfaces/gradunwarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
SimpleInterface
)

has_gradunwarp = False
try:
import gradunwrap
has_gradunwarp=True
except ImportError:
pass

class _GradUnwarpInputSpec(TraitedSpec):
infile = File(exists=True, mandatory=True, desc="input image to be corrected")
Expand Down
4 changes: 0 additions & 4 deletions niworkflows/interfaces/tests/test_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,7 @@ def test_DerivativesDataSink_build_path(
**entities,
)

<<<<<<< HEAD
if isinstance(expectation, type):
=======
if type(expectation) is type(Exception):
>>>>>>> 601d1d1f (fix flake8 tests)
with pytest.raises(expectation):
dds.run()
return
Expand Down
1 change: 0 additions & 1 deletion niworkflows/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ def wrapper(*args, **kwargs):
has_fsl = fsl.Info.version() is not None
has_freesurfer = fs.Info.version() is not None
has_afni = afni.Info.version() is not None
has_gradunwarp = gradunwarp.has_gradunwarp

0 comments on commit 559c8a1

Please sign in to comment.