Skip to content

Commit

Permalink
Merge pull request #158 from tsalo/fix-fit
Browse files Browse the repository at this point in the history
[FIX] Loop through volumes in FIT method
  • Loading branch information
emdupre authored Nov 28, 2018
2 parents 63d643a + f91d9ae commit 6e21c5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tedana/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ def fit_decay_ts(data, tes, mask, masksum):
s0_full_ts = np.copy(t2s_limited_ts)

for vol in range(n_vols):
(t2s_limited, s0_limited,
_, _,
t2s_full, s0_full) = fit_decay(data, tes, mask, masksum)
t2s_limited, s0_limited, _, _, t2s_full, s0_full = fit_decay(
data[:, :, vol][:, :, None], tes, mask, masksum)
t2s_limited_ts[:, vol] = t2s_limited
s0_limited_ts[:, vol] = s0_limited
t2s_full_ts[:, vol] = t2s_full
Expand Down

0 comments on commit 6e21c5d

Please sign in to comment.