Skip to content

Commit ba84e10

Browse files
committed
fix: resolved conflict
2 parents ae92ff5 + 4b86d97 commit ba84e10

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3479
-1003
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ python:
33
- "2.7"
44
before_install:
55
- deactivate
6+
- sudo rmdir /dev/shm
7+
- sudo ln -Tsf /{run,dev}/shm
68
- sudo apt-get update -qq
79
- sudo apt-get install lsb-release
810
- source /etc/lsb-release
9-
- wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
11+
- echo ${DISTRIB_CODENAME}
12+
- wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
1013
- sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9
1114
- sudo apt-get update -qq
1215
- sudo apt-get install -qq python-scipy python-nose
@@ -18,4 +21,4 @@ before_install:
1821
- virtualenv --system-site-packages ~/virtualenv/this
1922
- source ~/virtualenv/this/bin/activate
2023
install: python setup.py build_ext --inplace
21-
script: make test
24+
script: make test

CHANGES

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
Next release
22
============
3-
* ENH: New interfaces: nipy.Trim
43

4+
* ENH: New interfaces: nipy.Trim, fsl.GLM, fsl.SigLoss, spm.VBMSegment, fsl.InvWarp
55
* ENH: Allow control over terminal output for commandline interfaces
66
* ENH: Added preliminary support for generating Python code from Workflows.
7+
* ENH: New workflows for dMRI and fMRI pre-processing: added motion artifact correction
8+
with rotation of the B-matrix, and susceptibility correction for EPI imaging using
9+
fieldmaps. Updated eddy_correct pipeline to support both dMRI and fMRI, and new parameters.
10+
* ENH: Minor improvements to FSL's FUGUE and FLIRT interfaces
11+
* ENH: Added optional dilation of parcels in cmtk.Parcellate
12+
* ENH: Interpolation mode added to afni.Resample
13+
* ENH: Function interface can accept a list of strings containing import statements
14+
that allow external functions to run without their imports defined in the
15+
function body
16+
17+
* FIX: SpecifyModel works with 3D files correctly now.
718

819
Release 0.7.0 (Dec 18, 2012)
920
============================

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2006-2009, NIPY Developers
1+
Copyright (c) 2009-2013, NIPY Developers
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,13 @@ Currently NIPYPE consists of the following files and directories:
8989
License information
9090
-------------------
9191

92-
See the file "LICENSE" for information on the history of this
93-
software, terms & conditions for usage, and a DISCLAIMER OF ALL
94-
WARRANTIES.
92+
We use the 3-clause BSD license; the full license is in the file ``LICENSE`` in
93+
the nipype distribution.
9594

96-
This NIPYPE distribution contains no GNU General Public Licensed
97-
(GPLed) code so it may be used in proprietary projects. There
98-
are interfaces to some GNU code but these are entirely optional.
95+
There are interfaces to some GNU code but these are entirely optional.
9996

10097
All trademarks referenced herein are property of their respective
10198
holders.
10299

103-
Copyright (c) 2009-2012, NIPY Developers
100+
Copyright (c) 2009-2013, NIPY Developers
104101
All rights reserved.

doc/users/function_interface.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ be imported within the function itself::
7171
Without explicitly importing Nibabel in the body of the function, this
7272
would fail.
7373

74+
Alternatively, it is possible to provide a list of strings corresponding
75+
to the imports needed to execute a function as a parameter of the `Function`
76+
constructor. This allows for the use of external functions that do not
77+
import all external definitions inside the function body.
78+
7479
Hello World - Function interface in a workflow
7580
----------------------------------------------
7681

nipype/algorithms/modelgen.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ def _generate_standard_design(self, infolist,
324324
for i, out in enumerate(outliers):
325325
numscans = 0
326326
for f in filename_to_list(sessinfo[i]['scans']):
327-
numscans += load(f).get_shape()[3]
327+
shape = load(f).get_shape()
328+
if len(shape) == 3 or shape[3] == 1:
329+
iflogger.warning("You are using 3D instead of 4D files. Are you sure this was intended?")
330+
numscans += 1
331+
else:
332+
numscans += shape[3]
328333
for j, scanno in enumerate(out):
329334
colidx = len(sessinfo[i]['regress'])
330335
sessinfo[i]['regress'].insert(colidx, dict(name='', val=[]))

nipype/interfaces/afni/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
from .preprocess import (To3D, Refit, Resample, TStat, Automask, Volreg, Merge,
1212
ZCutUp, Calc, TShift, Warp, Detrend, Despike, Copy,
1313
Fourier, Allineate, Maskave, SkullStrip, TCat, Fim,
14-
TCorrelate, BrickStat, ROIStats, AutoTcorrelate)
14+
TCorrelate, BrickStat, ROIStats, AutoTcorrelate,
15+
BlurInMask, Autobox, TCorrMap, Bandpass)

nipype/interfaces/afni/base.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _output_update(self):
135135
self._outputtype = self.inputs.outputtype
136136

137137
@classmethod
138-
def set_default_outputtype(cls, outputtype):
138+
def set_default_output_type(cls, outputtype):
139139
"""Set the default output type for AFNI classes.
140140
141141
This method is used to set the default output type for all afni
@@ -216,9 +216,10 @@ def _gen_filename(self, name):
216216

217217
_, base, _ = split_filename(
218218
getattr(self.inputs, trait_spec.name_source))
219-
return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd='')
219+
return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd=os.getcwd())
220220
else:
221-
return super(AFNICommand, self)._gen_filename(name)
221+
return os.path.join(os.getcwd(),
222+
super(AFNICommand, self)._gen_filename(name))
222223

223224
def _overload_extension(self, value):
224225
path, base, _ = split_filename(value)
@@ -231,7 +232,8 @@ def _list_outputs(self):
231232
outputs = self.output_spec().get()
232233
for name in out_names:
233234
out = self._gen_filename(name)
234-
outputs[name] = os.path.abspath(out)
235+
if isdefined(out):
236+
outputs[name] = os.path.abspath(out)
235237
return outputs
236238

237239

0 commit comments

Comments
 (0)