Skip to content

Commit 71c3704

Browse files
committed
dict refactoring
1 parent 14a0329 commit 71c3704

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/cli/test_prune.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ def setUp(self) -> None:
2828
variables=dict(precipitation=np.nan,
2929
temperature=np.nan)) \
3030
.chunk(dict(time=1, lat=90, lon=90))
31-
encoding = {
32-
'precipitation': {
33-
'_FillValue': None
34-
},
35-
'temperature': {
36-
'_FillValue': None
37-
}
38-
}
31+
fv_encoding = dict(
32+
_FillValue=None
33+
)
34+
encoding = dict(
35+
precipitation=fv_encoding,
36+
temperature=fv_encoding
37+
)
3938
cube.to_zarr(self.TEST_CUBE, encoding=encoding)
4039

4140
def tearDown(self) -> None:

0 commit comments

Comments
 (0)