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

Method set_attributes

xarray/backends/common.py:541–552  ·  view source on GitHub ↗

This provides a centralized method to set the dataset attributes on the data store. Parameters ---------- attributes : dict-like Dictionary of key/value (attribute name / attribute) pairs

(self, attributes)

Source from the content-addressed store, hash-verified

539 )
540
541 def set_attributes(self, attributes):
542 """
543 This provides a centralized method to set the dataset attributes on the
544 data store.
545
546 Parameters
547 ----------
548 attributes : dict-like
549 Dictionary of key/value (attribute name / attribute) pairs
550 """
551 for k, v in attributes.items():
552 self.set_attribute(k, v)
553
554 def set_variables(self, variables, check_encoding_set, writer, unlimited_dims=None):
555 """

Callers 1

storeMethod · 0.95

Calls 2

set_attributeMethod · 0.95
itemsMethod · 0.80

Tested by

no test coverage detected