Skip to content

Commit 5700883

Browse files
author
IvanARashid
committed
Minor bugfix. Moved an assignment a few lines
1 parent 13ad87f commit 5700883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrappers/OsipiBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def osipi_fit(self, data=None, bvalues=None, thresholds=None, bounds=None, initi
5050
# We should first check whether the attributes in the __init__ are not None
5151
# Then check if they are input here, if they are, these should overwrite the attributes
5252
use_bvalues = bvalues if bvalues is not None else self.bvalues
53-
kwargs["bvalues"] = use_bvalues
5453
use_thresholds = thresholds if self.bvalues is None else self.thresholds
5554
use_bounds = bounds if self.bounds is None else self.bounds
5655
use_initial_guess = initial_guess if self.initial_guess is None else self.initial_guess
@@ -60,6 +59,7 @@ def osipi_fit(self, data=None, bvalues=None, thresholds=None, bounds=None, initi
6059
if use_thresholds is not None: use_thresholds = np.asarray(use_thresholds)
6160
if use_bounds is not None: use_bounds = np.asarray(use_bounds)
6261
if use_initial_guess is not None: use_initial_guess = np.asarray(use_initial_guess)
62+
kwargs["bvalues"] = use_bvalues
6363

6464
#args = [data, use_bvalues, use_thresholds]
6565
args = [data, use_thresholds]

0 commit comments

Comments
 (0)