We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d3d2f9 commit 414a3aaCopy full SHA for 414a3aa
1 file changed
malariagen_data/util.py
@@ -430,6 +430,7 @@ def _init_filesystem(url, **kwargs):
430
"""Initialise a fsspec filesystem from a given base URL and parameters."""
431
432
storage_options = None # To prevent using before assignment (Pylint).
433
+ simplecache_options = kwargs.pop("simplecache", None)
434
435
# Special case Google Cloud Storage, authenticate the user.
436
if "gs://" in url or "gcs://" in url:
@@ -487,6 +488,9 @@ def _init_filesystem(url, **kwargs):
487
488
# Some other kind of URL, pass through kwargs as-is.
489
storage_options = kwargs
490
491
+ if simplecache_options is not None:
492
+ storage_options["simplecache"] = simplecache_options
493
+
494
# Process the URL using fsspec.
495
fs, path = url_to_fs(url, **storage_options)
496
0 commit comments