Skip to content

Commit 6b00c67

Browse files
committed
update CHANGES
1 parent 04995a8 commit 6b00c67

File tree

6 files changed

+26
-24
lines changed

6 files changed

+26
-24
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Next release
22
============
33

4+
* ENH: Added interface to simulate DWIs using the multi-tensor model
5+
(https://github.com/nipy/nipype/pull/1085)
46
* ENH: New mesh.MeshWarpMaths to operate on surface-defined warpings
57
(https://github.com/nipy/nipype/pull/1016)
68
* FIX: Refactor P2PDistance, change name to ComputeMeshWarp, add regression tests,

nipype/interfaces/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,9 +1349,9 @@ def _terminal_output_update(self):
13491349
def set_default_terminal_output(cls, output_type):
13501350
"""Set the default terminal output for CommandLine Interfaces.
13511351
1352-
This method is used to set default terminal output for
1353-
CommandLine Interfaces. However, setting this will not
1354-
update the output type for any existing instances. For these,
1352+
This method is used to set default terminal output for
1353+
CommandLine Interfaces. However, setting this will not
1354+
update the output type for any existing instances. For these,
13551355
assign the <instance>.inputs.terminal_output.
13561356
"""
13571357

0 Bytes
Binary file not shown.

nipype/testing/data/von_errmap.nii.gz

0 Bytes
Binary file not shown.

nipype/utils/nipype_cmd.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def add_options(parser=None, module=None, function=None):
1919
if parser and module and function:
2020
__import__(module)
2121
interface = getattr(sys.modules[module],function)()
22-
22+
2323
inputs = interface.input_spec()
2424
for name, spec in sorted(interface.inputs.traits(transient=None).items()):
2525
desc = "\n".join(interface._get_trait_desc(inputs, name, spec))[len(name)+2:]
@@ -33,7 +33,7 @@ def add_options(parser=None, module=None, function=None):
3333
def run_instance(interface, options):
3434
if interface:
3535
print "setting function inputs"
36-
36+
3737
for input_name, _ in interface.inputs.items():
3838
if getattr(options, input_name) != None:
3939
value = getattr(options, input_name)
@@ -48,23 +48,23 @@ def run_instance(interface, options):
4848
value)
4949
except ValueError, e:
5050
print "Error when setting the value of %s: '%s'"%(input_name, str(e))
51-
51+
5252
print interface.inputs
5353
res = interface.run()
54-
print res.outputs
54+
print res.outputs
5555

5656

5757
def main(argv):
58-
58+
5959
if len(argv) == 2 and not argv[1].startswith("-"):
6060
listClasses(argv[1])
6161
sys.exit(0)
62-
62+
6363
parser = argparse.ArgumentParser(description='Nipype interface runner', prog=argv[0])
6464
parser.add_argument("module", type=str, help="Module name")
6565
parser.add_argument("interface", type=str, help="Interface name")
6666
parsed = parser.parse_args(args=argv[1:3])
67-
67+
6868
_, prog = os.path.split(argv[0])
6969
interface_parser = argparse.ArgumentParser(description="Run %s"%parsed.interface, prog=" ".join([prog] + argv[1:3]))
7070
interface_parser, interface = add_options(interface_parser, parsed.module, parsed.interface)

nipype/utils/tests/test_cmd.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ def test_main_returns_2_on_empty(self):
2222
with self.assertRaises(SystemExit) as cm:
2323
with capture_sys_output() as (stdout, stderr):
2424
nipype_cmd.main(['nipype_cmd'])
25-
25+
2626
exit_exception = cm.exception
2727
self.assertEqual(exit_exception.code, 2)
28-
29-
self.assertEqual(stderr.getvalue(),
28+
29+
self.assertEqual(stderr.getvalue(),
3030
"""usage: nipype_cmd [-h] module interface
3131
nipype_cmd: error: too few arguments
3232
""")
3333
self.assertEqual(stdout.getvalue(), '')
34-
34+
3535
def test_main_returns_0_on_help(self):
3636
with self.assertRaises(SystemExit) as cm:
3737
with capture_sys_output() as (stdout, stderr):
3838
nipype_cmd.main(['nipype_cmd', '-h'])
39-
39+
4040
exit_exception = cm.exception
4141
self.assertEqual(exit_exception.code, 0)
42-
42+
4343
self.assertEqual(stderr.getvalue(), '')
4444
self.assertEqual(stdout.getvalue(),
4545
"""usage: nipype_cmd [-h] module interface
@@ -53,15 +53,15 @@ def test_main_returns_0_on_help(self):
5353
optional arguments:
5454
-h, --help show this help message and exit
5555
""")
56-
56+
5757
def test_list_nipy_interfacesp(self):
5858
with self.assertRaises(SystemExit) as cm:
5959
with capture_sys_output() as (stdout, stderr):
6060
nipype_cmd.main(['nipype_cmd', 'nipype.interfaces.nipy'])
61-
61+
6262
exit_exception = cm.exception
6363
self.assertEqual(exit_exception.code, 0)
64-
64+
6565
self.assertEqual(stderr.getvalue(), '')
6666
self.assertEqual(stdout.getvalue(),
6767
"""Available Interfaces:
@@ -77,10 +77,10 @@ def test_run_4d_realign_without_arguments(self):
7777
with self.assertRaises(SystemExit) as cm:
7878
with capture_sys_output() as (stdout, stderr):
7979
nipype_cmd.main(['nipype_cmd', 'nipype.interfaces.nipy', 'FmriRealign4d'])
80-
80+
8181
exit_exception = cm.exception
8282
self.assertEqual(exit_exception.code, 2)
83-
83+
8484
self.assertEqual(stderr.getvalue(),
8585
"""usage: nipype_cmd nipype.interfaces.nipy FmriRealign4d [-h]
8686
[--between_loops BETWEEN_LOOPS]
@@ -95,15 +95,15 @@ def test_run_4d_realign_without_arguments(self):
9595
nipype_cmd nipype.interfaces.nipy FmriRealign4d: error: too few arguments
9696
""")
9797
self.assertEqual(stdout.getvalue(), '')
98-
98+
9999
def test_run_4d_realign_help(self):
100100
with self.assertRaises(SystemExit) as cm:
101101
with capture_sys_output() as (stdout, stderr):
102102
nipype_cmd.main(['nipype_cmd', 'nipype.interfaces.nipy', 'FmriRealign4d', '-h'])
103-
103+
104104
exit_exception = cm.exception
105105
self.assertEqual(exit_exception.code, 0)
106-
106+
107107
self.assertEqual(stderr.getvalue(), '')
108108
self.assertTrue("Run FmriRealign4d" in stdout.getvalue())
109109

0 commit comments

Comments
 (0)