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

Function backends_dict_from_pkg

xarray/backends/plugins.py:65–78  ·  view source on GitHub ↗
(
    entrypoints: list[EntryPoint],
)

Source from the content-addressed store, hash-verified

63
64
65def backends_dict_from_pkg(
66 entrypoints: list[EntryPoint],
67) -> dict[str, type[BackendEntrypoint]]:
68 backend_entrypoints = {}
69 for entrypoint in entrypoints:
70 name = entrypoint.name
71 try:
72 backend = entrypoint.load()
73 backend_entrypoints[name] = backend
74 except Exception as ex:
75 warnings.warn(
76 f"Engine {name!r} loading failed:\n{ex}", RuntimeWarning, stacklevel=2
77 )
78 return backend_entrypoints
79
80
81def set_missing_parameters(

Callers 1

build_enginesFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…