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

Method getbuffer

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

Get the value of this write as bytes or memory.

(self)

Source from the content-addressed store, hash-verified

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.95
_datatree_to_netcdfFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected