Skip to content

Commit

Permalink
Update cbf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Dec 22, 2023
1 parent 96095ae commit 9f77294
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aslprep/utils/cbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,15 +994,16 @@ def fit_deltam_pcasl(
for i_voxel in range(n_voxels):
deltam_voxel = deltam_arr[i_voxel, :]
plds_voxel = plds[i_voxel, :]
m0_a_voxel = m0_a[i_voxel]

# The independent variables used to estimate cbf, etc. are either floats or arrays,
# but curve_fit needs them all to be the same size/shape.
xdata = np.zeros((n_volumes, 7))
xdata[0, 0] = labeleff
xdata[0, 1] = labeleff
xdata[0, 2] = t1blood
xdata[0, 3] = m0_a
xdata[0, 4] = m0_a
xdata[0, 3] = m0_a_voxel
xdata[0, 4] = m0_a_voxel
xdata[:, 5] = tau
xdata[:, 6] = plds_voxel

Expand Down

0 comments on commit 9f77294

Please sign in to comment.