Skip to content

Commit be4fb39

Browse files
committed
Also add bvalues to the file
1 parent 14ce4a5 commit be4fb39

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

phantoms/MR_XCAT_qMRI/sim_ivim_sig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ def XCAT_to_MR_DCE(XCAT, TR, TE, bvalue, D, f, Ds, b0=3, ivim_cont = True):
388388
'Dpim': np.mean(Dpim[selector], axis=0),
389389
'data': signals
390390
}
391+
generic_data['config'] = {
392+
'bvalues': bvalue.tolist()
393+
}
391394
with open('generic.json', 'w') as f:
392395
json.dump(generic_data, f, indent=4)
393396

tests/IVIMmodels/unit_tests/generic.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,5 +948,27 @@
948948
0.005759608016476787,
949949
0.004089478201726281
950950
]
951+
},
952+
"config": {
953+
"bvalues": [
954+
0.0,
955+
1.0,
956+
2.0,
957+
5.0,
958+
10.0,
959+
20.0,
960+
30.0,
961+
50.0,
962+
75.0,
963+
100.0,
964+
150.0,
965+
250.0,
966+
350.0,
967+
400.0,
968+
550.0,
969+
700.0,
970+
850.0,
971+
1000.0
972+
]
951973
}
952974
}

0 commit comments

Comments
 (0)