(data, attributes)
| 223 | |
| 224 | |
| 225 | def _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 | |
| 232 | def _force_native_endianness(var): |
no outgoing calls
no test coverage detected
searching dependent graphs…