Method
roundtrip
(
self, data, save_kwargs=None, open_kwargs=None, allow_cleanup_failure=False
)
Source from the content-addressed store, hash-verified
| 4680 | |
| 4681 | @contextlib.contextmanager |
| 4682 | def roundtrip( |
| 4683 | self, data, save_kwargs=None, open_kwargs=None, allow_cleanup_failure=False |
| 4684 | ): |
| 4685 | if save_kwargs is None: |
| 4686 | save_kwargs = {} |
| 4687 | if open_kwargs is None: |
| 4688 | open_kwargs = {} |
| 4689 | saved = self.save(data, path=None, **save_kwargs) |
| 4690 | with self.open(saved, **open_kwargs) as ds: |
| 4691 | yield ds |
| 4692 | |
| 4693 | @pytest.mark.asyncio |
| 4694 | @pytest.mark.skip(reason="NetCDF backends don't support async loading") |
Callers
nothing calls this directly
Tested by
no test coverage detected