Skip to content

Commit

Permalink
libnetcdf <4.9 pin (#5242)
Browse files Browse the repository at this point in the history
* Pin libnetcdf<4.9 and update lock files.

* What's New entry.

* libnetcdf not available on PyPI.

* Fix for Pandas v2.0.

* Fix for Pandas v2.0.
  • Loading branch information
trexfeathers authored Apr 13, 2023
1 parent 715857b commit 3e2cfd4
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 74 deletions.
2 changes: 1 addition & 1 deletion docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ This document explains the changes made to Iris for this release
🔗 Dependencies
===============

#. N/A
#. `@trexfeathers`_ introduced the ``libnetcdf <4.9`` pin. (:pull:`5242`)


📚 Documentation
Expand Down
11 changes: 6 additions & 5 deletions lib/iris/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,13 @@ def as_cubes(
... var_name="longitude",
... value_name="air_temperature"
... )
>>> my_df["longitude"] = my_df["longitude"].infer_objects()
>>> print(my_df)
latitude longitude air_temperature
0 35 0 300
1 25 0 301
2 35 10 302
3 25 10 303
latitude longitude air_temperature
0 35 0 300
1 25 0 301
2 35 10 302
3 25 10 303
>>> my_df = my_df.set_index(["latitude", "longitude"])
>>> my_df = my_df.sort_index()
>>> converted_cube = as_cubes(my_df)[0]
Expand Down
49 changes: 25 additions & 24 deletions requirements/locks/py310-linux-64.lock

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions requirements/locks/py38-linux-64.lock

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions requirements/locks/py39-linux-64.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions requirements/py310.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- cf-units >=3.1
- cftime >=1.5
- dask-core >=2022.9.0
- libnetcdf <4.9
- matplotlib >=3.5
- netcdf4
- numpy >=1.19
Expand Down
1 change: 1 addition & 0 deletions requirements/py38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- cf-units >=3.1
- cftime >=1.5
- dask-core >=2022.9.0
- libnetcdf <4.9
- matplotlib >=3.5
- netcdf4
- numpy >=1.19
Expand Down
1 change: 1 addition & 0 deletions requirements/py39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- cf-units >=3.1
- cftime >=1.5
- dask-core >=2022.9.0
- libnetcdf <4.9
- matplotlib >=3.5
- netcdf4
- numpy >=1.19
Expand Down

0 comments on commit 3e2cfd4

Please sign in to comment.