forked from Ouranosinc/xclim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proper fix for loess linalg error - non-random tests (Ouranosinc#2020)
### What kind of change does this PR introduce? * Non-random tests are, in my opinion, better than random tests. This fixes the data for test_loess_smoothing_nan to be something known to work. Loess_smoothing does not work on singular matrices (which are very rare to occur randomly, but *do* occur). * Also removes the too harsh condition on np.linalg.LinAlgError, which could occur for other reasons than singular matrices.
- Loading branch information
Showing
1 changed file
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters