Skip to content

Commit

Permalink
OJ_GU_seg to json
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarjalnefjord committed Jun 28, 2024
1 parent 1a393ca commit 12f42cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/original/OJ_GU/ivim_seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,11 @@ def _Ddiff(Y, yb, b, D):

f = _f_from_intercept(A, S0)

if Y.shape[0] == 1:
D = D.item()
f = f.item()
Dstar = Dstar.item()
S0 = S0.item()

pars = {'D': D, 'f': f, 'Dstar': Dstar, 'S0': S0}
return pars
3 changes: 2 additions & 1 deletion tests/IVIMmodels/unit_tests/algorithms.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"OGC_AmsterdamUMC_biexp_segmented",
"OGC_AmsterdamUMC_biexp",
"PV_MUMC_biexp",
"PvH_KB_NKI_IVIMfit"
"PvH_KB_NKI_IVIMfit",
"OJ_GU_seg"
],
"IAR_LU_biexp": {
"tolerances": {
Expand Down

0 comments on commit 12f42cb

Please sign in to comment.