File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ Breaking changes
24
24
25
25
New Features
26
26
~~~~~~~~~~~~
27
+
28
+ - Support new h5netcdf backend keyword `phony_dims ` (available from h5netcdf
29
+ v0.8.0 for :py:class: `~xarray.backends.H5NetCDFStore `.
30
+ By `Kai Mühlbauer <https://github.com/kmuehlbauer >`_.
27
31
- implement pint support. (:issue: `3594 `, :pull: `3706 `)
28
32
By `Justus Magin <https://github.com/keewis >`_.
29
33
34
+
30
35
Bug fixes
31
36
~~~~~~~~~
32
37
- Use ``dask_array_type `` instead of ``dask_array.Array `` for type
Original file line number Diff line number Diff line change 1
1
import functools
2
+ from distutils .version import LooseVersion
2
3
3
4
import numpy as np
4
5
@@ -117,13 +118,22 @@ def open(
117
118
lock = None ,
118
119
autoclose = False ,
119
120
invalid_netcdf = None ,
121
+ phony_dims = None ,
120
122
):
121
123
import h5netcdf
122
124
123
125
if format not in [None , "NETCDF4" ]:
124
126
raise ValueError ("invalid format for h5netcdf backend" )
125
127
126
128
kwargs = {"invalid_netcdf" : invalid_netcdf }
129
+ if phony_dims is not None :
130
+ if LooseVersion (h5netcdf .__version__ ) >= LooseVersion ("0.8.0" ):
131
+ kwargs ["phony_dims" ] = phony_dims
132
+ else :
133
+ raise ValueError (
134
+ "h5netcdf backend keyword argument 'phony_dims' needs "
135
+ "h5netcdf >= 0.8.0."
136
+ )
127
137
128
138
if lock is None :
129
139
if mode == "r" :
You can’t perform that action at this time.
0 commit comments