Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions skgstat/Variogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,7 @@ def __init__(self,

# do the preprocessing and fitting upon initialization
# Note that fit() calls preprocessing
fit_bounds = self._kwargs.get('fit_bounds') # returns None if empty
fit_p0 = self._kwargs.get('fit_p0')
self.fit(force=True, bounds=fit_bounds, p0=fit_p0)
self.fit(force=True)

# finally check if any of the uncertainty propagation kwargs are set
self._experimental_conf_interval = None
Expand Down Expand Up @@ -1622,6 +1620,12 @@ def fit(self, force=False, method=None, sigma=None, bounds=None, p0=None, **kwar
scipy.optimize.least_squares

"""
# get `bounds` and `p0` from `self._kwargs`, still `None` if not set
if bounds is None:
bounds = self._kwargs.get('fit_bounds') # returns None if empty
if p0 is None:
p0 = self._kwargs.get('fit_p0')

# store the old cof
if self.cof is None:
old_params = {}
Expand Down