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

Function _construct_cache_dir

xarray/tutorial.py:33–41  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

31
32
33def _construct_cache_dir(path):
34 import pooch
35
36 if isinstance(path, os.PathLike):
37 path = os.fspath(path)
38 elif path is None:
39 path = pooch.os_cache(_default_cache_dir_name)
40
41 return path
42
43
44external_urls: dict = {}

Callers 2

open_datasetFunction · 0.85
open_datatreeFunction · 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…