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

Method set_attribute

xarray/backends/h5netcdf_.py:361–364  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

359 self.ds.dimensions[name] = length
360
361 def set_attribute(self, key, value):
362 if self.format == "NETCDF4_CLASSIC":
363 value = encode_nc3_attr_value(value)
364 self.ds.attrs[key] = value
365
366 def encode_variable(self, variable, name=None):
367 if self.format == "NETCDF4_CLASSIC":

Callers

nothing calls this directly

Calls 1

encode_nc3_attr_valueFunction · 0.90

Tested by

no test coverage detected