-
Notifications
You must be signed in to change notification settings - Fork 67
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
Tests failing on main #1562
Comments
This appears to be related to a change in the github actions runner. |
Coastal Vulnerability test failureThis was failing due to a RuntimeWarning coming from shapely. This looks like a M1 specific bug with shapely or geos? I asked about it here: shapely/shapely#2045 Scenic Quality test failure@phargogh was able to reproduce this one locally on his M1 mac. It comes down to a difference in floating point error between Intel and M1. The relevant code is: invest/src/natcap/invest/scenic_quality/viewshed.pyx Lines 834 to 841 in 55804f9
We have a situation where adjusted_dem_height and z should be equal, but on M1, z has floating point error that makes it greater than adjusted_dem_height , and so the conditional evaluates differently. This is like how need isclose for equality comparison, we need a similar thing for greater/lesser-than-or-equal comparison. Probably worth scanning the rest of our code base for this situation.
NDR test failureThe failing test uses an invalid geometry, which is questionable, but I reproduced the issue with a valid geometry too. The issue comes down to different results from |
The old geometry had its self intersection on the pixel centerpoint, which should work, but didn't on M1 mac runners (see natcap#1562). This modifies the geometry so that the pixel centerpoint is fully within the geometry, which I'm hoping is more stable.
See llvm/llvm-project#91824 for the thread with the llvm devs. RE:natcap#1562
Tests are failing on macOS, all python versions. Probably due to some dependency update.
The text was updated successfully, but these errors were encountered: