https://build.opensuse.org/request/show/1225144 https://github.com/numba/numba/issues/9760 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=103
21 lines
767 B
Diff
21 lines
767 B
Diff
---
|
|
xarray/tutorial.py | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
Index: xarray-2024.05.0/xarray/tutorial.py
|
|
===================================================================
|
|
--- xarray-2024.05.0.orig/xarray/tutorial.py
|
|
+++ xarray-2024.05.0/xarray/tutorial.py
|
|
@@ -158,7 +158,10 @@ def open_dataset(
|
|
url = f"{base_url}/raw/{version}/{path.name}"
|
|
|
|
# retrieve the file
|
|
- filepath = pooch.retrieve(url=url, known_hash=None, path=cache_dir)
|
|
+ fname = pathlib.Path(cache_dir, path).expanduser()
|
|
+ if not fname.exists():
|
|
+ fname = None
|
|
+ filepath = pooch.retrieve(url=url, fname=fname, known_hash=None, path=cache_dir)
|
|
ds = _open_dataset(filepath, engine=engine, **kws)
|
|
if not cache:
|
|
ds = ds.load()
|