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

Class _CloseWithCopy

xarray/backends/netCDF4_.py:381–389  ·  view source on GitHub ↗

Wrapper around netCDF4's esoteric interface for writing in-memory data.

Source from the content-addressed store, hash-verified

379
380@dataclass
381class _CloseWithCopy:
382 """Wrapper around netCDF4's esoteric interface for writing in-memory data."""
383
384 proxy: BytesIOProxy
385 nc4_dataset: netCDF4.Dataset
386
387 def __call__(self):
388 value = self.nc4_dataset.close()
389 self.proxy.getvalue = _Thunk(value)
390
391
392class NetCDF4DataStore(WritableCFDataStore):

Callers 1

openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…