We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2c3ff commit 507e3edCopy full SHA for 507e3ed
xarray/coding/common.py
@@ -75,6 +75,9 @@ def __getitem__(self, key):
75
def get_duck_array(self):
76
return self.func(self.array.get_duck_array())
77
78
+ async def async_get_duck_array(self):
79
+ return self.func(await self.array.async_get_duck_array())
80
+
81
def __repr__(self) -> str:
82
return f"{type(self).__name__}({self.array!r}, func={self.func!r}, dtype={self.dtype!r})"
83
xarray/tests/test_async.py
@@ -86,6 +86,7 @@ def memorystore() -> "MemoryStore":
86
chunks=(5, 5),
87
dtype="f4",
88
dimension_names=["x", "y"],
89
+ attributes={"add_offset": 1, "scale_factor": 2},
90
)
91
z1[:, :] = np.random.random((10, 10))
92
0 commit comments