Skip to content

Commit

Permalink
Merge pull request #27 from ghisvail/enh/public-api
Browse files Browse the repository at this point in the history
[ENH] Expose Nipype1Task to the root package
  • Loading branch information
ghisvail authored Nov 21, 2022
2 parents 536458e + 69f0444 commit cea8f9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pydra/tasks/nipype1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
from ._version import __version__
except ImportError:
pass

from .utils import Nipype1Task

__all__ = ["Nipype1Task"]
2 changes: 1 addition & 1 deletion pydra/tasks/nipype1/tests/test_nipype1task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from nipype.interfaces import fsl
import nipype.interfaces.utility as nutil

from pydra.tasks.nipype1.utils import Nipype1Task
from pydra.tasks.nipype1 import Nipype1Task


@pytest.mark.skipif(fsl.Info.version() is None, reason="Test requires FSL")
Expand Down
2 changes: 2 additions & 0 deletions pydra/tasks/nipype1/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import attrs
import typing as ty

__all__ = ["Nipype1Task"]


def traitedspec_to_specinfo(traitedspec):
trait_names = set(traitedspec.copyable_trait_names())
Expand Down

0 comments on commit cea8f9b

Please sign in to comment.