Skip to content
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

NumPy<2 required for some older components #173

Open
mdpiper opened this issue Oct 10, 2024 · 0 comments
Open

NumPy<2 required for some older components #173

mdpiper opened this issue Oct 10, 2024 · 0 comments

Comments

@mdpiper
Copy link
Member

mdpiper commented Oct 10, 2024

Some older pymt components won't install with numpy>=2. A small sampling shows

  • pymt_cem
  • pymt_child
  • pymt_hydrotrend

need numpy<2, while

  • pymt_permamodel

does not.

mdpiper added a commit that referenced this issue Oct 10, 2024
mdpiper added a commit that referenced this issue Oct 11, 2024
* Remove duplicate install of testing dependencies

* Require latest version of model_metadata

* Remove obsolete esmpy requirement

* Don't install components for testing

The subsequent call to `mamba install` updates *shapely* to 2.0,
which breaks the <1.9 requirement from #164.

* import UnitSystem from gimli.units

* remove redundant gimli.units unit tests

* checkout gimli.units raises UdunitsError

* Consolidate requirements in one install step

* Fix typos

* Roll back model_metadata for older models

* Remove shapely version cap

* Convert shapely proxy object to geometries

See https://shapely.readthedocs.io/en/stable/migration.html#other-deprecated-functionality

* Remove scipy version cap

* Mark fail when extrapolating with previous and next methods

See scipy/scipy#16997 (comment)

* Check for AssertionError instead of ValueError

* Revert "Don't install components for testing"

This reverts commit bfb47fc.
The shapely version issue is resolved.

* Limit numpy<2

See #173.

* Set numpy print options to legacy=1.21

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).

* Add python=3.11 to tests

* Switch from Mambaforge to Miniforge

* Switch from mamba to conda

* Update versions of packaged actions

* install requirements with pip

* turn off fail-fast

* switch back to conda to install requirements

---------

Co-authored-by: mcflugen <mcflugen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant