Skip to content

Commit 33ebab8

Browse files
committed
Editing docstring to follow nipype template and add some tests.
1 parent 403947b commit 33ebab8

13 files changed

+565
-746
lines changed

nipype/interfaces/niftyreg/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from __future__ import (print_function, division, unicode_literals,
2121
absolute_import)
22-
from builtins import property, super, str
22+
from builtins import property, super
2323
from distutils.version import StrictVersion
2424
import os
2525
import subprocess

nipype/interfaces/niftyreg/reg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
<http://niftyreg.sourceforge.net>`_ registration command line tools.
88
99
The interfaces were written to work with niftyreg version 1.5.10
10+
11+
Change directory to provide relative paths for doctests
12+
>>> import os
13+
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
14+
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
15+
>>> os.chdir(datadir)
1016
"""
1117

1218
from __future__ import print_function, division, \

nipype/interfaces/niftyreg/regutils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# -*- coding: utf-8 -*-
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
4+
45
"""The regutils module provides classes for interfacing with the `niftyreg
56
<http://niftyreg.sourceforge.net>`_ utility command line tools.
6-
The interfaces were written to work with niftyreg version 1.4
7+
8+
The interfaces were written to work with niftyreg version 1.5.10
9+
10+
Change directory to provide relative paths for doctests
11+
>>> import os
12+
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
13+
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
14+
>>> os.chdir(datadir)
715
"""
816

917
from __future__ import print_function, division, \

nipype/interfaces/niftyreg/tests/test_Reg_Aladin.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

nipype/interfaces/niftyreg/tests/test_Reg_Average.py

Lines changed: 0 additions & 204 deletions
This file was deleted.

nipype/interfaces/niftyreg/tests/test_Reg_F3D.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)