Skip to content

Commit f612601

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/original/OJ_GU/ivim_seg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ def _Ddiff(Y, yb, b, D):
208208
f = _f_from_intercept(A, S0)
209209

210210
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)
211+
D = D.item()
212+
f = f.item()
213+
Dstar = Dstar.item()
214+
S0 = S0.item()
215215

216216
pars = {'D': D, 'f': f, 'Dstar': Dstar, 'S0': S0}
217217
return pars

0 commit comments

Comments
 (0)