Skip to content

Commit 12f42cb

Browse files
OJ_GU_seg to json
1 parent 1a393ca commit 12f42cb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
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 = D.item()
212+
f = f.item()
213+
Dstar = Dstar.item()
214+
S0 = S0.item()
215+
210216
pars = {'D': D, 'f': f, 'Dstar': Dstar, 'S0': S0}
211217
return pars

tests/IVIMmodels/unit_tests/algorithms.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"OGC_AmsterdamUMC_biexp_segmented",
1212
"OGC_AmsterdamUMC_biexp",
1313
"PV_MUMC_biexp",
14-
"PvH_KB_NKI_IVIMfit"
14+
"PvH_KB_NKI_IVIMfit",
15+
"OJ_GU_seg"
1516
],
1617
"IAR_LU_biexp": {
1718
"tolerances": {

0 commit comments

Comments
 (0)