Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Python-15.6
python-xarray
local_dataset.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File local_dataset.patch of Package python-xarray
--- xarray/tutorial.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: xarray-2023.8.0/xarray/tutorial.py =================================================================== --- xarray-2023.8.0.orig/xarray/tutorial.py +++ xarray-2023.8.0/xarray/tutorial.py @@ -157,7 +157,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()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor