MCPcopy
hub / github.com/pydata/xarray / as_tuple

Method as_tuple

xarray/core/indexing.py:82–95  ·  view source on GitHub ↗

Unlike ``dataclasses.astuple``, return a shallow copy. See https://stackoverflow.com/a/51802661

(self)

Source from the content-addressed store, hash-verified

80 rename_dims: dict[Any, Hashable] = field(default_factory=dict)
81
82 def as_tuple(self):
83 """Unlike ``dataclasses.astuple``, return a shallow copy.
84
85 See https://stackoverflow.com/a/51802661
86
87 """
88 return (
89 self.dim_indexers,
90 self.indexes,
91 self.variables,
92 self.drop_coords,
93 self.drop_indexes,
94 self.rename_dims,
95 )
96
97
98def merge_sel_results(results: list[IndexSelResult]) -> IndexSelResult:

Callers 1

selMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected