MCPcopy Index your code
hub / github.com/pydata/xarray / _ensure_fill_value_valid

Function _ensure_fill_value_valid

xarray/backends/netCDF4_.py:225–229  ·  view source on GitHub ↗
(data, attributes)

Source from the content-addressed store, hash-verified

223
224
225def _ensure_fill_value_valid(data, attributes):
226 # work around for netCDF4/scipy issue where _FillValue has the wrong type:
227 # https://github.com/Unidata/netcdf4-python/issues/271
228 if data.dtype.kind == "S" and "_FillValue" in attributes:
229 attributes["_FillValue"] = np.bytes_(attributes["_FillValue"])
230
231
232def _force_native_endianness(var):

Callers 1

open_store_variableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…