cleaned tests and documentation, added deprecation note in doc for LineModel.

This commit is contained in:
Kevin Keraudren
2015-12-03 22:16:56 +00:00
parent 6a2961fdee
commit 61b7c20e03
2 changed files with 3 additions and 5 deletions
+3 -3
View File
@@ -44,6 +44,8 @@ class LineModel(BaseModel):
A minimum number of 2 points is required to solve for the parameters.
**Deprecated, use ``LineModelND`` instead.**
Attributes
----------
params : tuple
@@ -243,9 +245,7 @@ class LineModelND(BaseModel):
axis : int
axis orthogonal to the hyperplane intersecting the line.
params : (2, ) array, optional
Optional custom parameter set in the form (`dist`, `theta`).
new_params : (2, ) array, optional
Optional custom parameter set in the form (`X0`, `direction`).
Optional custom parameter set in the form (`origin`, `direction`).
Returns
-------
-2
View File
@@ -52,8 +52,6 @@ def test_line_model_residuals():
def test_line_model_under_determined():
data = np.empty((1, 2))
assert_raises(ValueError, LineModel().estimate, data)
data = np.empty((1, 3))
assert_raises(ValueError, LineModel().estimate, data)
def test_line_modelND_invalid_input():