Updated doc. No need to call fit explicitly.

parent dc847a6c
v1.3.1, 8/8/2014
- Removed necessity of calling fit
- Added warning to main text
v1.3.0, 8/8/2014
- Removed unnecessary type conversion
- Rewrote the non-parametric fitting
......
......@@ -50,3 +50,6 @@ the residuals and the histogram of the residuals. All this can be output to a
CSV file for further analysis in your favorite software (including most
spreadsheet programs).
:Note: Version 1.3.0 is not fully compatible with previous versions. Although
the interfaces offer better flexibility, it will require some code change.
......@@ -403,6 +403,6 @@ class CurveFitting(object):
``xdata``
"""
if not self.fitted:
raise ValueError("Error, the object has't been fitted yet.")
self.fit()
return self.function(self.popt, xdata)
......@@ -284,7 +284,8 @@ class NonParamRegression(object):
self._fitted = True
def evaluate(self, points, out=None):
assert self.fitted, "Error, the object needs to be fitted first."
if not self.fitter:
self.fit()
points = np.asanyarray(points)
real_shape = points.shape
assert len(real_shape) < 3, "The input points can be at most a 2D array"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment