Skip to content

Commit becea1a

Browse files
author
IvanARashid
committed
Fixed bug
1 parent 8d57500 commit becea1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/original/IAR_LundUniversity/ivim_fit_method_biexp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def ivim_model(self, b, S0, f, D_star, D):
6161

6262
def set_bounds(self, bounds):
6363
# Use this function for fits that uses curve_fit
64-
if bounds == None:
64+
if bounds is None:
6565
self.bounds = np.array([(0, 0, 0.005, 0), (np.inf, 1, 0.1, 0.004)])
6666
else:
67-
self.bounds = np.array([(0, *bounds[0]), (np.inf, *bounds[1])])
67+
self.bounds = np.array([bounds[0], bounds[1]])
6868

6969
def set_initial_guess(self, initial_guess):
70-
if initial_guess == None:
70+
if initial_guess is None:
7171
self.initial_guess = (1, 0.2, 0.03, 0.001)
7272
else:
7373
self.initial_guess = initial_guess

0 commit comments

Comments
 (0)