Skip to content

Commit 2bbd603

Browse files
author
IvanARashid
committed
Fixed bug in TopoPro
1 parent 4093e32 commit 2bbd603

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/original/IAR_LundUniversity/ivim_fit_method_modified_topopro.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class IvimModelTopoPro(ReconstModel):
1010

11-
def __init__(self, gtab, bounds=[[0,1], [0.005, 0.1], [1e-5, 0.004]], \
11+
def __init__(self, gtab, bounds=[[0, 0.005, 1e-5], [1, 0.1, 0.004]], \
1212
rescale_units=False, shgo_iters=5, rescale_results_to_mm2_s=False):
1313
r""" Initialize an IvimModelTP class.
1414
This particular script was modified as the DIPY version has stringent
@@ -80,9 +80,9 @@ def __init__(self, gtab, bounds=[[0,1], [0.005, 0.1], [1e-5, 0.004]], \
8080
# Bounds expressed as (lower bound, upper bound) for [f, D*, D].
8181
self.bounds = np.array([(0, 1), (5, 100), (0, 4)])
8282
elif (bounds[0][1] <= 1) or rescale_units: # Realistically, if mm2/s units are used, D* bound is <= 1
83-
self.bounds = np.array([(bounds[0][0], bounds[0][1]), \
84-
(bounds[1][0]*1000, bounds[1][1]*1000), \
85-
(bounds[2][0]*1000, bounds[2][1]*1000)])
83+
self.bounds = np.array([(bounds[0][0], bounds[1][0]), \
84+
(bounds[0][1]*1000, bounds[1][1]*1000), \
85+
(bounds[0][2]*1000, bounds[1][2]*1000)])
8686
else: # Finally, if units if µm2/ms are already used
8787
self.bounds = np.array([(bounds[0][0], bounds[1][0], \
8888
(bounds[0][1], bounds[1][1]), \

0 commit comments

Comments
 (0)