Skip to content

Commit e73a7fa

Browse files
committed
fix: resolved conflict
2 parents d5859e9 + b47d85d commit e73a7fa

File tree

9 files changed

+70
-30
lines changed

9 files changed

+70
-30
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Next release
1+
Release 0.9.0 (December 20, 2013)
22
============
33

44
* ENH: SelectFiles: a streamlined version of DataGrabber

doc/_templates/sidebar_versions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>{{ _('Versions') }}</h3>
1717
<td align="left">Release</td><td align="right">Devel</td>
1818
</tr>
1919
<tr>
20-
<td align="left">0.8.0</td><td align="right">pre-0.9</td>
20+
<td align="left">0.9.0</td><td align="right">1.0-dev</td>
2121
</tr>
2222
<tr>
2323
<td align="left"><a href="{{pathto('users/install')}}">Download</a></td>

doc/documentation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Documentation
99
:Release: |version|
1010
:Date: |today|
1111

12-
Previous versions: `0.7 <http://nipy.org/nipype/0.7>`_ `0.6 <http://nipy.org/nipype/0.6>`_
12+
Previous versions: `0.8 <http://nipy.org/nipype/0.8>`_ `0.7 <http://nipy.org/nipype/0.7>`_
1313

1414
.. container:: doc2
1515

doc/users/install.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ This page covers the necessary steps to install Nipype.
99
Download
1010
--------
1111

12-
Release 0.8.0: [`zip <https://github.com/nipy/nipype/archive/0.8.zip>`__ `tar.gz
13-
<https://github.com/nipy/nipype/archive/0.8.tar.gz>`__]
12+
Release 0.9.0: [`zip <https://github.com/nipy/nipype/archive/0.9.zip>`__ `tar.gz
13+
<https://github.com/nipy/nipype/archive/0.9.tar.gz>`__]
1414

15-
Development: [`zip <http://github.com/nipy/nipype/zipball/master>`__ `tar.gz
15+
Development: [`zip <http://github.com/nipy/nipype/zipball/master>`__ `tar.gz
1616
<http://github.com/nipy/nipype/tarball/master>`__]
1717

1818
`Prior downloads <http://github.com/nipy/nipype/tags>`_
@@ -156,29 +156,29 @@ These are the software packages that nipype.interfaces wraps:
156156
FSL_
157157
4.1.0 or later
158158

159-
matlab_
159+
matlab_
160160
2008a or later
161161

162162
SPM_
163163
SPM5/8
164164

165165
FreeSurfer_
166166
FreeSurfer version 4 and higher
167-
167+
168168
AFNI_
169169
2009_12_31_1431 or later
170170

171171
Slicer_
172172
3.6 or later
173173

174-
Nipy_
174+
Nipy_
175175
0.1.2+20110404 or later
176176

177-
Nitime_
177+
Nitime_
178178
(optional)
179-
179+
180180
Camino_
181-
181+
182182
Camino2Trackvis_
183183

184184
ConnectomeViewer_

nipype/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_version_major = 0
1111
_version_minor = 9
1212
_version_micro = 0
13-
_version_extra = '.pre'
13+
_version_extra = ''
1414

1515
def get_nipype_gitversion():
1616
"""Nipype version as reported by the last commit in git

nipype/interfaces/fsl/model.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ def _run_interface(self, runtime):
11511151
for cidx in range(npoints):
11521152
mat_txt.append(' '.join(
11531153
['%e' % self.inputs.regressors[key][cidx] for key in regs]))
1154-
mat_txt = '\n'.join(mat_txt)
1154+
mat_txt = '\n'.join(mat_txt) + '\n'
11551155
# write t-con file
11561156
con_txt = []
11571157
counter = 0
@@ -1175,7 +1175,7 @@ def _run_interface(self, runtime):
11751175
convals[regs.index(reg)
11761176
] = self.inputs.contrasts[idx][3][regidx]
11771177
con_txt.append(' '.join(['%e' % val for val in convals]))
1178-
con_txt = '\n'.join(con_txt)
1178+
con_txt = '\n'.join(con_txt) + '\n'
11791179
# write f-con file
11801180
fcon_txt = ''
11811181
if nfcons:
@@ -1190,6 +1190,7 @@ def _run_interface(self, runtime):
11901190
convals[tconmap[self.inputs.contrasts.index(tcon)]] = 1
11911191
fcon_txt.append(' '.join(['%d' % val for val in convals]))
11921192
fcon_txt = '\n'.join(fcon_txt)
1193+
fcon_txt += '\n'
11931194
# write group file
11941195
grp_txt = ['/NumWaves 1',
11951196
'/NumPoints %d' % npoints,
@@ -1200,7 +1201,7 @@ def _run_interface(self, runtime):
12001201
grp_txt += ['%d' % self.inputs.groups[i]]
12011202
else:
12021203
grp_txt += ['1']
1203-
grp_txt = '\n'.join(grp_txt)
1204+
grp_txt = '\n'.join(grp_txt) + '\n'
12041205

12051206
txt = {'design.mat': mat_txt,
12061207
'design.con': con_txt,
@@ -1702,7 +1703,7 @@ def _list_outputs(self):
17021703
class GLMInputSpec(FSLCommandInputSpec):
17031704
in_file = File(exists=True, argstr='-i %s', mandatory=True, position=1,
17041705
desc='input file name (text matrix or 3D/4D image file)')
1705-
out_file = File(name_template="%s_glm.txt", argstr='-o %s', position=3,
1706+
out_file = File(name_template="%s_glm", argstr='-o %s', position=3,
17061707
desc=('filename for GLM parameter estimates'
17071708
+ ' (GLM betas)'),
17081709
name_source="in_file", keep_extension=True)
@@ -1799,23 +1800,17 @@ class GLM(FSLCommand):
17991800
Example
18001801
-------
18011802
>>> import nipype.interfaces.fsl as fsl
1802-
>>> glm = fsl.GLM(in_file='functional.nii', design='maps.nii')
1803+
>>> glm = fsl.GLM(in_file='functional.nii', design='maps.nii', output_type='NIFTI')
18031804
>>> glm.cmdline
1804-
'fsl_glm -i functional.nii -d maps.nii -o functional_glm.txt'
1805+
'fsl_glm -i functional.nii -d maps.nii -o functional_glm.nii'
18051806
18061807
"""
18071808
_cmd = 'fsl_glm'
18081809
input_spec = GLMInputSpec
18091810
output_spec = GLMOutputSpec
18101811

18111812
def _list_outputs(self):
1812-
outputs = self.output_spec().get()
1813-
1814-
outputs['out_file'] = self.inputs.out_file
1815-
# Generate an out_file if one is not provided
1816-
if not isdefined(outputs['out_file']) and isdefined(self.inputs.in_file):
1817-
outputs['out_file'] = self._gen_filename('out_file')
1818-
outputs['out_file'] = os.path.abspath(outputs['out_file'])
1813+
outputs = super(GLM, self)._list_outputs()
18191814

18201815
if isdefined(self.inputs.out_cope):
18211816
outputs['out_cope'] = os.path.abspath(self.inputs.out_cope)

nipype/interfaces/fsl/tests/test_auto_GLM.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_GLM_inputs():
5252
out_file=dict(name_source='in_file',
5353
keep_extension=True,
5454
position=3,
55-
name_template='%s_glm.txt',
55+
name_template='%s_glm',
5656
argstr='-o %s',
5757
),
5858
dat_norm=dict(argstr='--dat_norm',

nipype/interfaces/fsl/tests/test_model.py

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,56 @@ def teardown_infile(tmp_dir):
3333
def test_MultipleRegressDesign():
3434
_, tp_dir = setup_infile()
3535
foo = fsl.MultipleRegressDesign()
36-
foo.inputs.regressors = dict(reg1=[1,1,1],reg2=[0.2,0.4,0.5],reg3=[1,-1,2])
37-
con1 = ['con1','T',['reg1','reg2'],[0.5,0.5]]
38-
con2 = ['con2','T',['reg3'],[1]]
36+
foo.inputs.regressors = dict(voice_stenght=[1,1,1],age=[0.2,0.4,0.5],BMI=[1,-1,2])
37+
con1 = ['voice_and_age','T',['age','voice_stenght'],[0.5,0.5]]
38+
con2 = ['just_BMI','T',['BMI'],[1]]
3939
foo.inputs.contrasts = [con1,con2,['con3','F',[con1,con2]]]
4040
res = foo.run()
4141
yield assert_equal, res.outputs.design_mat, os.path.join(os.getcwd(),'design.mat')
4242
yield assert_equal, res.outputs.design_con, os.path.join(os.getcwd(),'design.con')
4343
yield assert_equal, res.outputs.design_fts, os.path.join(os.getcwd(),'design.fts')
4444
yield assert_equal, res.outputs.design_grp, os.path.join(os.getcwd(),'design.grp')
45+
46+
design_mat_expected_content = """/NumWaves 3
47+
/NumPoints 3
48+
/PPheights 3.000000e+00 5.000000e-01 1.000000e+00
49+
50+
/Matrix
51+
1.000000e+00 2.000000e-01 1.000000e+00
52+
-1.000000e+00 4.000000e-01 1.000000e+00
53+
2.000000e+00 5.000000e-01 1.000000e+00
54+
"""
55+
56+
design_con_expected_content = """/ContrastName1 voice_and_age
57+
/ContrastName2 just_BMI
58+
/NumWaves 3
59+
/NumContrasts 2
60+
/PPheights 1.000000e+00 1.000000e+00
61+
/RequiredEffect 100.000 100.000
62+
63+
/Matrix
64+
0.000000e+00 5.000000e-01 5.000000e-01
65+
1.000000e+00 0.000000e+00 0.000000e+00
66+
"""
67+
68+
design_fts_expected_content = """/NumWaves 2
69+
/NumContrasts 1
70+
71+
/Matrix
72+
1 1
73+
"""
74+
75+
design_grp_expected_content = """/NumWaves 1
76+
/NumPoints 3
77+
78+
/Matrix
79+
1
80+
1
81+
1
82+
"""
83+
yield assert_equal, open(os.path.join(os.getcwd(),'design.con'), 'r').read(), design_con_expected_content
84+
yield assert_equal, open(os.path.join(os.getcwd(),'design.mat'), 'r').read(), design_mat_expected_content
85+
yield assert_equal, open(os.path.join(os.getcwd(),'design.fts'), 'r').read(), design_fts_expected_content
86+
yield assert_equal, open(os.path.join(os.getcwd(),'design.grp'), 'r').read(), design_grp_expected_content
87+
88+
teardown_infile(tp_dir)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def main(**extra_args):
9191
author_email=INFO_VARS['AUTHOR_EMAIL'],
9292
platforms=INFO_VARS['PLATFORMS'],
9393
version=INFO_VARS['VERSION'],
94+
install_requires=INFO_VARS['REQUIRES'],
9495
requires=INFO_VARS['REQUIRES'],
9596
configuration = configuration,
9697
cmdclass = cmdclass,

0 commit comments

Comments
 (0)