Skip to content

Commit 4869ac4

Browse files
corrected bug related to testing of OJ_GU_seg
1 parent 227be9f commit 4869ac4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/original/OJ_GU/ivim_seg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,11 @@ def _Ddiff(Y, yb, b, D):
207207

208208
f = _f_from_intercept(A, S0)
209209

210+
if Y.shape[0] == 1:
211+
D = np.array(D)
212+
f = np.array(f)
213+
Dstar = np.array(Dstar)
214+
S0 = np.array(S0)
215+
210216
pars = {'D': D, 'f': f, 'Dstar': Dstar, 'S0': S0}
211217
return pars

0 commit comments

Comments
 (0)