Skip to content

Commit fa64907

Browse files
committed
revise in accordance with @effigies review
1 parent deceb95 commit fa64907

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nipype/algorithms/confounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ def compute_noise_components(imgseries, mask_images, components_criterion=0.5,
13061306
u = np.full((M.shape[0], components_criterion),
13071307
np.nan, dtype=np.float32)
13081308
else:
1309-
continue
1309+
u = np.full((M.shape[0], 1), np.nan, dtype=np.float32)
13101310

13111311
variance_explained = (s ** 2) / np.sum(s ** 2)
13121312
cumulative_variance_explained = np.cumsum(variance_explained)

nipype/workflows/rsfmri/fsl/tests/test_resting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def test_create_resting_preproc(self, mock_node, mock_realign_wf):
8989
# assert
9090
expected_file = os.path.abspath(self.out_filenames['components_file'])
9191
with open(expected_file, 'r') as components_file:
92-
components_data = [line.split()
93-
for line in components_file.read().splitlines()]
92+
components_data = [line.rstrip().split()
93+
for line in components_file]
9494
num_got_components = len(components_data)
9595
assert (num_got_components == self.num_noise_components or
9696
num_got_components == self.fake_data.shape[3])

0 commit comments

Comments
 (0)