-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fixes for shapely and scipy updates #174
Conversation
The subsequent call to `mamba install` updates *shapely* to 2.0, which breaks the <1.9 requirement from #164.
This reverts commit bfb47fc. The shapely version issue is resolved.
See #173.
Without this setting, the value of legacy=1.25 was being inherited from Landlab, which isn't allowed in the installed version of numpy<2 (currently 1.26.4).
I required numpy<2 for older components. This can be lifted after the components are updated. On top of this, I added |
The seven failing tests on Windows are emitted from Landlab from the same Cython file. Here's the last few lines of one of the stack traces:
and here's the full stack trace:
|
That's interesting, I would have thought the Landlab unit tests would have picked this up. I think it should be an easy fix. |
Added Python 3.11 to the tests. We can't go to 3.12 because some older components aren't there yet. |
This is off-topic from the rest of the PR, but because Mambaforge is going away quickly, I did a quick health check on the CI workflows. |
@mcflugen What do you think we should do? It seems like everything is OK except for the Windows tests which are failing because of an upstream issue. |
I think we need a new release of Landlab. I'll have a look but it should be straightforward. |
The fix looks like it will be straightforward but I'm not sure how to reproduce the problem so that we know we've fixed it. It looks like the current set of (Landlab) tests already test this case. |
@mdpiper I hope that landlab/landlab#2015 fixes this issue. The error you were seeing was caused by the Maybe Windows runners on GA are 32 bit? |
🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR includes two fixes to pymt for updates to shapely and scipy.
In shapely, the
asShape
adapters have been removed. The migration guide recommends replacing these adapters (such asasPoint
) with geometries (Point
). This fixes #164.In scipy, a bug was identified with the
next
andprevious
methods when extrapolating above and below a range, respectively. The expected behavior is for these methods to fail in these situations. This fixes #162.With these fixes, the version limit on these packages has been removed. I also reverted the "Don't install components for testing" change which was failing because of #164.