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

Bnb/nc4 dep removal #210

Merged
merged 17 commits into from
May 2, 2024
Merged

Bnb/nc4 dep removal #210

merged 17 commits into from
May 2, 2024

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Apr 25, 2024

netCDF4 was only being used in era_downloader and log interpolation. So I've changed this to use xarray with a h5netcdf engine. This allows us to unpin the netCDF dependency.

@bnb32 bnb32 force-pushed the bnb/nc4_dep_removal branch 2 times, most recently from f430088 to 04bf1b3 Compare April 25, 2024 16:41
Copy link
Collaborator

@castelao castelao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions. The only point that I think it is important is to define the minimum working version, which would be the smallest between the one you're using now and using at eagle. This information would be important later whenever we decide to update or just moving to kestrel.

pyproject.toml Outdated Show resolved Hide resolved
sup3r/utilities/era_downloader.py Outdated Show resolved Hide resolved
sup3r/utilities/era_downloader.py Outdated Show resolved Hide resolved
sup3r/utilities/era_downloader.py Show resolved Hide resolved
sup3r/utilities/era_downloader.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@castelao castelao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great to me!

sup3r/utilities/era_downloader.py Show resolved Hide resolved
Copy link
Collaborator Author

@bnb32 bnb32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it work with expand_dims? Derive pressure from level then expand_dims to match zg? If so, clean the attributes inherited from level.
Yep. Much cleaner!

sup3r/utilities/era_downloader.py Outdated Show resolved Hide resolved
@bnb32 bnb32 merged commit d6f3288 into main May 2, 2024
8 checks passed
@bnb32 bnb32 deleted the bnb/nc4_dep_removal branch May 2, 2024 13:51
github-actions bot pushed a commit that referenced this pull request May 2, 2024
removed netCDF4 depedency in favor of h5netcdf and cftime.
added lr_padded_slice arg to qdm bias transform method.
some streamlining for era_downloader
castelao added a commit that referenced this pull request May 2, 2024
castelao added a commit that referenced this pull request May 13, 2024
* Testing with Python-3.11

* No direct dependency on google-auth-oauthlib

Let's try to remove it as a direct dependency.

* It seems to run just fine in 3.11

Thanks to @bnb32 with PR #210 !

* Adding a basic pixi setup

Sync dependency tree on OSX and Linux.

* And the actual versions

* Adding test and doc environment

* Update meaningless upgrade on dynamic version of sup3r

* Ignoring .pixi

* Adding dev environment

* dev environment aggregates everyting

When developing we test and build documentation.

* Updating pixi.lock

* Removing netcdf4
github-actions bot pushed a commit that referenced this pull request May 13, 2024
* Testing with Python-3.11

* No direct dependency on google-auth-oauthlib

Let's try to remove it as a direct dependency.

* It seems to run just fine in 3.11

Thanks to @bnb32 with PR #210 !

* Adding a basic pixi setup

Sync dependency tree on OSX and Linux.

* And the actual versions

* Adding test and doc environment

* Update meaningless upgrade on dynamic version of sup3r

* Ignoring .pixi

* Adding dev environment

* dev environment aggregates everyting

When developing we test and build documentation.

* Updating pixi.lock

* Removing netcdf4
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

Successfully merging this pull request may close these issues.

None yet

2 participants