Wrapper around netCDF4's esoteric interface for writing in-memory data.
| 379 | |
| 380 | @dataclass |
| 381 | class _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 | |
| 392 | class NetCDF4DataStore(WritableCFDataStore): |
no outgoing calls
no test coverage detected
searching dependent graphs…