Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Jun 18, 2024
1 parent b98060a commit ad17d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pyramids.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_resampled_pyramid(temperature, benchmark, resampling):
pytest.importorskip('rioxarray')
levels = 2
temperature = temperature.rio.write_crs('EPSG:4326')
temperature = temperature.isel(time=0).drop('time')
temperature = temperature.transpose('time', 'lat', 'lon')
# import pdb; pdb.set_trace()

pyramid = benchmark(
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_resampled_pyramid_2D(temperature, benchmark):
pytest.importorskip('rioxarray')
levels = 2
temperature = temperature.rio.write_crs('EPSG:4326')
temperature = temperature.isel(time=0).drop('time')
temperature = temperature.isel(time=0).drop_vars('time')
pyramid = benchmark(lambda: pyramid_resample(temperature, levels=levels, x='lon', y='lat'))
verify_bounds(pyramid)
assert pyramid.ds.attrs['multiscales']
Expand Down

0 comments on commit ad17d71

Please sign in to comment.