| 1 |
Author: Diane Trout <[email protected]> |
| 2 |
Description: lintian spotted a few typos |
| 3 |
Forwarded: https://github.com/has2k1/scikit-misc/issues/14 |
| 4 |
|
| 5 |
|
| 6 |
--- a/skmisc/loess/src/_loess.pyx |
| 7 |
+++ b/skmisc/loess/src/_loess.pyx |
| 8 |
@@ -88,14 +88,14 @@ |
| 9 |
elif x.ndim == 2: |
| 10 |
p = x.shape[1] |
| 11 |
else: |
| 12 |
|
| 13 |
+ raise ValueError("The array of independent variables " |
| 14 |
"should be 2D at most!") |
| 15 |
|
| 16 |
if y.ndim != 1: |
| 17 |
raise ValueError("The array of dependent variables " |
| 18 |
"should be 1D.") |
| 19 |
elif n != len(y): |
| 20 |
|
| 21 |
+ raise ValueError("The independent and dependent variables " |
| 22 |
"should have the same number of " |
| 23 |
"observations.") |
| 24 |
|