Skip to content

Commit ee726a1

Browse files
author
Shoshana Berleant
committed
undo accidental changes in merge
1 parent 045bfdc commit ee726a1

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ inplace:
5353
$(PYTHON) setup.py build_ext -i
5454

5555
test-code: in
56-
# $(NOSETESTS) -s nipype/algorithms/compcor.py --with-doctest -v
57-
$(NOSETESTS) -s nipype/algorithms/tests/test_tsnr.py #--with-coverage
58-
$(NOSETESTS) -s nipype/algorithms/tests/test_compcor.py #--with-coverage
59-
# $(NOSETESTS) -s nipype/algorithms/misc.py --with-doctest -v
56+
$(NOSETESTS) -s nipype --with-doctest
6057

6158
test-doc:
6259
$(NOSETESTS) -s --with-doctest --doctest-tests --doctest-extension=rst \

nipype/algorithms/tsnr.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ def _run_interface(self, runtime):
6060
img = nb.load(self.inputs.in_file[0])
6161
header = img.header.copy()
6262
vollist = [nb.load(filename) for filename in self.inputs.in_file]
63-
data = np.concatenate(
64-
[vol.get_data().reshape(
65-
vol.get_shape()[:3] + (-1,))
66-
for vol in vollist],
67-
axis=3)
63+
data = np.concatenate([vol.get_data().reshape(
64+
vol.get_shape()[:3] + (-1,)) for vol in vollist], axis=3)
6865
data = np.nan_to_num(data)
6966

7067
if data.dtype.kind == 'i':

0 commit comments

Comments
 (0)