-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EOF tests are failing in CI for Windows #463
Comments
|
Here's a direct link to where the GeoCAT-comp eofs tests are failing for Windows in CI: https://github.com/NCAR/geocat-comp/actions/runs/6131275834/job/16642482498?pr=460 |
Windows Test Failures: 10 tests
|
stats.py: 244
|
Potential source of issue: numpy (v. 1.23.5) Running np.linalg.svd on Windows:
Running np.linalg.svd on Linux:
Across platforms, the output of S (Vectors with singular vectors) is different. On Windows |
For the resulting |
Using the same data array on both Linux and Windows: Windows:
Linux:
The second values are flipped in Linux from Windows from |
Seems like this is a result of when having duplicate singular values the SVD is not unique
This can be also seen when using Windows:
Linux:
The magnitude of values is correct, but the signs can differ
|
From the NCL Graphics: EOFS Note on signs of EOF analysis (contributed by Andrew Dawson, U. East Anglia)
It is possible that the slightly different way that Windows rounds and handles numbers on the back end is resulting in slightly different inputs that are yielding different signed EOFs. But it appears that the sign of the array might be irrelevant to the |
Describe the bug
Several of the EOF tests are failing in CI for Windows. You can see this in PR #460 where Windows was added to the testing matrix.
Specifically, there appears to be a sign error in the resulting arrays for the EOF functions.
Expected behavior
Tests should pass.
OS:
Windows
Additional notes:
I only looked into this briefly and didn't see anything offhand.
It does look like the eofs package we depend upon supports Windows.
We probably need to sort this out before merging PR #460.
The text was updated successfully, but these errors were encountered: