From 559c8a1ba986e21f7c1dc1aaefba36593a08bc59 Mon Sep 17 00:00:00 2001 From: bpinsard Date: Wed, 15 May 2024 14:05:53 -0400 Subject: [PATCH] fix rebase mess --- niworkflows/interfaces/gradunwarp.py | 6 ++++++ niworkflows/interfaces/tests/test_bids.py | 4 ---- niworkflows/testing.py | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/niworkflows/interfaces/gradunwarp.py b/niworkflows/interfaces/gradunwarp.py index 61652be208b..a6816d6883a 100644 --- a/niworkflows/interfaces/gradunwarp.py +++ b/niworkflows/interfaces/gradunwarp.py @@ -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") diff --git a/niworkflows/interfaces/tests/test_bids.py b/niworkflows/interfaces/tests/test_bids.py index 007c943d60e..365a62356a8 100644 --- a/niworkflows/interfaces/tests/test_bids.py +++ b/niworkflows/interfaces/tests/test_bids.py @@ -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 diff --git a/niworkflows/testing.py b/niworkflows/testing.py index 37ee9b09fed..8c29e02873b 100644 --- a/niworkflows/testing.py +++ b/niworkflows/testing.py @@ -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