|
8 | 8 |
|
9 | 9 | class IvimModelTopoPro(ReconstModel):
|
10 | 10 |
|
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]], \ |
12 | 12 | rescale_units=False, shgo_iters=5, rescale_results_to_mm2_s=False):
|
13 | 13 | r""" Initialize an IvimModelTP class.
|
14 | 14 | 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]], \
|
80 | 80 | # Bounds expressed as (lower bound, upper bound) for [f, D*, D].
|
81 | 81 | self.bounds = np.array([(0, 1), (5, 100), (0, 4)])
|
82 | 82 | 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)]) |
86 | 86 | else: # Finally, if units if µm2/ms are already used
|
87 | 87 | self.bounds = np.array([(bounds[0][0], bounds[1][0], \
|
88 | 88 | (bounds[0][1], bounds[1][1]), \
|
|
0 commit comments