Skip to content

Commit

Permalink
Merge pull request #146 from Azaya89/fix-ds
Browse files Browse the repository at this point in the history
Dataset.dims FutureWarning
  • Loading branch information
martindurant authored Jun 30, 2024
2 parents d0418f7 + 4ca61da commit 8dfcba8
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
CONDA_ENV: [py310, py38, py39, upstream]
CONDA_ENV: [py312, py311, py310, py39, upstream]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions ci/environment-py310.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ dependencies:
- s3fs
- rioxarray
- werkzeug < 2.2.0
- dask
7 changes: 4 additions & 3 deletions ci/environment-py38.yml → ci/environment-py311.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test_env
channels:
- conda-forge
dependencies:
- python=3.8
- python=3.11
- aiohttp
- boto3
- exifread
Expand All @@ -13,13 +13,14 @@ dependencies:
- pip
- pydap
- pytest
- rasterio <= 1.3.6
- rasterio
- s3fs >= 2021.08.0
- scikit-image
- rangehttpserver
- xarray >= 0.17
- rangehttpserver
- zarr
- moto < 3
- s3fs
- rioxarray
- werkzeug < 2.2.0
- dask
26 changes: 26 additions & 0 deletions ci/environment-py312.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: test_env
channels:
- conda-forge
dependencies:
- python=3.12
- aiohttp
- boto3
- exifread
- flask
- h5netcdf
- intake
- netcdf4
- pip
- pydap
- pytest
- rasterio
- s3fs >= 2021.08.0
- scikit-image
- rangehttpserver
- xarray >= 0.17
- zarr
- moto < 3
- s3fs
- rioxarray
- werkzeug < 2.2.0
- dask
2 changes: 2 additions & 0 deletions ci/environment-py39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ dependencies:
- s3fs
- rioxarray
- werkzeug < 2.2.0
- dask

1 change: 1 addition & 0 deletions ci/environment-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies:
- gdal
- werkzeug < 2.2.0
- rioxarray
- dask
- pip:
- git+https://github.com/fsspec/filesystem_spec.git
- git+https://github.com/intake/intake.git
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Preparing Pull Requests

$ conda env create -f ci/environment-py39.yml
$ conda activate test_env
$ pip install . -e
$ pip install -e .


#. Run all the tests
Expand Down
2 changes: 1 addition & 1 deletion intake_xarray/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _get_schema(self):

ds2 = xr.Dataset({'raster': self._ds})
metadata = {
'dims': dict(ds2.dims),
'dims': dict(ds2.sizes),
'data_vars': {k: list(ds2[k].coords)
for k in ds2.data_vars.keys()},
'coords': tuple(ds2.coords.keys()),
Expand Down

0 comments on commit 8dfcba8

Please sign in to comment.