Skip to content

Commit 453d259

Browse files
only allow netcdf4 engine
this is a temporary restiction to ensure only correct encoding for the output is used. Related: pydata/xarray#7127
1 parent 3a13e30 commit 453d259

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xbitinfo/save_compressed.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ def __call__(
114114
for_cdo=False,
115115
time_dim="time",
116116
chunks=None,
117+
engine="netcdf4",
117118
**kwargs,
118119
):
120+
assert engine == "netcdf4", "Only 'netcdf4' engine is currently supported."
119121
self._obj.to_netcdf(
120122
path,
121123
encoding=get_compress_encoding_nc(
@@ -127,6 +129,7 @@ def __call__(
127129
time_dim=time_dim,
128130
chunks=chunks,
129131
),
132+
engine=engine,
130133
**kwargs,
131134
)
132135

0 commit comments

Comments
 (0)