(
nfiles: int, suffix: str = ".nc", allow_cleanup_failure: bool = False
)
| 1732 | |
| 1733 | @contextlib.contextmanager |
| 1734 | def create_tmp_files( |
| 1735 | nfiles: int, suffix: str = ".nc", allow_cleanup_failure: bool = False |
| 1736 | ) -> Iterator[list[str]]: |
| 1737 | with ExitStack() as stack: |
| 1738 | files = [ |
| 1739 | stack.enter_context(create_tmp_file(suffix, allow_cleanup_failure)) |
| 1740 | for _ in range(nfiles) |
| 1741 | ] |
| 1742 | yield files |
| 1743 | |
| 1744 | |
| 1745 | class NetCDF4Base(NetCDFBase): |
no test coverage detected
searching dependent graphs…