-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for shapely and scipy updates (#174)
* 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>
- Loading branch information
Showing
9 changed files
with
40 additions
and
36 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import numpy as np | ||
from gimli.units import UnitSystem | ||
|
||
from ._version import __version__ | ||
from .model_collection import ModelCollection | ||
|
||
np.set_printoptions(legacy="1.21") | ||
|
||
MODELS = ModelCollection() | ||
|
||
__all__ = ["__version__", "UnitSystem", "MODELS"] |
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
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
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