Skip to content

Commit

Permalink
Update weatherbench deps.
Browse files Browse the repository at this point in the history
Before this, we allowed `numpy < 2`, but this was causing issues with time compatibility. Partial upgrades resulted in other issues, so I upgraded numpy/pandas/xarray to be inline with current Google versions.

PiperOrigin-RevId: 703143594
  • Loading branch information
langmore authored and Weatherbench2 authors committed Dec 5, 2024
1 parent 8308c9c commit ce2b78e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# TODO(#3): Support Python 3.10 and 3.11.
python-version: ["3.9"]
python-version: ["3.11"]
steps:
- name: Cancel previous
uses: styfle/[email protected]
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# TODO(#3): Support Python 3.10 and 3.11.
python-version: ["3.9"]
python-version: ["3.11"]
steps:
- name: Cancel previous
uses: styfle/[email protected]
Expand Down
5 changes: 1 addition & 4 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ for this purpose. If possible, consider reviewing [Google's Code Review Guide](h

### Development Setup

After cloning the project, we recommend creating a local Python3.9 environment
After cloning the project, we recommend creating a local Python3.11 environment
for development (try [Miniconda](https://docs.conda.io/en/latest/miniconda.html)).

> Note: We'll soon support Python 3.10 & 3.11 ([#3](https://github.com/google-research/weatherbench2/issues/3)).
> At that point, we will recommend creating a Python3.10 environment.
To locally install the project for development, please run:
```shell
pip install -e ".[tests]"
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@

base_requires = [
'apache_beam>=2.31.0',
'cftime>=1.6.2',
'jax[cpu]',
'numpy',
'pandas==2.0.3',
'numpy>=2.1.3',
'pandas>=2.2.3',
'scipy',
'scikit-learn',
'xarray==2023.7.0',
'xarray>=2024.11.0',
'xarray-beam',
'zarr',
]
Expand All @@ -48,7 +49,7 @@

setuptools.setup(
name='weatherbench2',
version='0.2.0',
version='0.2.1',
license='Apache 2.0',
author='Google LLC',
author_email='[email protected]',
Expand Down

0 comments on commit ce2b78e

Please sign in to comment.