xarray.backends.CachingFileManager.acquire_context#

CachingFileManager.acquire_context(needs_lock=True)[source]#

Context manager for acquiring a file.

The file stays open until the context exits, even if it is evicted from the cache in the meantime.