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

Class BytesIOProxy

xarray/backends/common.py:206–215  ·  view source on GitHub ↗

Proxy object for a write that a memoryview.

Source from the content-addressed store, hash-verified

204
205@dataclass
206class BytesIOProxy:
207 """Proxy object for a write that a memoryview."""
208
209 getvalue: Callable[[], memoryview] | None = None
210
211 def getbuffer(self) -> memoryview:
212 """Get the value of this write as bytes or memory."""
213 if self.getvalue is None:
214 raise ValueError("must set getvalue before fetching value")
215 return self.getvalue()
216
217
218def _open_remote_file(file, mode, storage_options=None, open_kwargs=None):

Callers 2

to_netcdfFunction · 0.90
_datatree_to_netcdfFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…