Skip to content

Commit

Permalink
Merge pull request #607 from dcs4cop/toniof-xxx-adapt_to_zarr_2_11
Browse files Browse the repository at this point in the history
adapt to zarr 2.11
  • Loading branch information
forman authored Feb 10, 2022
2 parents 018d86e + 71c3704 commit af0a5d3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/cli/test_prune.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import os.path
import sys

import numpy as np
import xarray as xr

from test.cli.helpers import CliTest
Expand All @@ -28,8 +28,14 @@ def setUp(self) -> None:
variables=dict(precipitation=np.nan,
temperature=np.nan)) \
.chunk(dict(time=1, lat=90, lon=90))

write_cube(cube, self.TEST_CUBE, "zarr", cube_asserted=True)
fv_encoding = dict(
_FillValue=None
)
encoding = dict(
precipitation=fv_encoding,
temperature=fv_encoding
)
cube.to_zarr(self.TEST_CUBE, encoding=encoding)

def tearDown(self) -> None:
rimraf(self.TEST_CUBE)
Expand Down

0 comments on commit af0a5d3

Please sign in to comment.