generated from nipype/pydra-tasks-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nipype/auto-generated
Replaced manually generated interfaces with auto-converted from Nipype
- Loading branch information
Showing
15 changed files
with
415 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import os | ||
import logging | ||
from pathlib import Path | ||
import tempfile | ||
import pytest | ||
|
||
# Set DEBUG logging for unittests | ||
|
||
log_level = logging.WARNING | ||
|
||
logger = logging.getLogger("fileformats") | ||
logger.setLevel(log_level) | ||
|
||
sch = logging.StreamHandler() | ||
sch.setLevel(log_level) | ||
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") | ||
sch.setFormatter(formatter) | ||
logger.addHandler(sch) | ||
|
||
|
||
# For debugging in IDE's don't catch raised exceptions and let the IDE | ||
# break at it | ||
if os.getenv("_PYTEST_RAISE", "0") != "0": | ||
|
||
@pytest.hookimpl(tryfirst=True) | ||
def pytest_exception_interact(call): | ||
raise call.excinfo.value | ||
|
||
@pytest.hookimpl(tryfirst=True) | ||
def pytest_internalerror(excinfo): | ||
raise excinfo.value | ||
|
||
|
||
@pytest.fixture | ||
def work_dir(): | ||
work_dir = tempfile.mkdtemp() | ||
return Path(work_dir) |
1 change: 1 addition & 0 deletions
1
src-fileformats-extras/fileformats/extras/medimage_freesurfer/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from ._version import __version__ |
Oops, something went wrong.