Skip to content

Commit 414a3aa

Browse files
committed
fixed previously occuring bug
1 parent 2d3d2f9 commit 414a3aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

malariagen_data/util.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ def _init_filesystem(url, **kwargs):
430430
"""Initialise a fsspec filesystem from a given base URL and parameters."""
431431

432432
storage_options = None # To prevent using before assignment (Pylint).
433+
simplecache_options = kwargs.pop("simplecache", None)
433434

434435
# Special case Google Cloud Storage, authenticate the user.
435436
if "gs://" in url or "gcs://" in url:
@@ -487,6 +488,9 @@ def _init_filesystem(url, **kwargs):
487488
# Some other kind of URL, pass through kwargs as-is.
488489
storage_options = kwargs
489490

491+
if simplecache_options is not None:
492+
storage_options["simplecache"] = simplecache_options
493+
490494
# Process the URL using fsspec.
491495
fs, path = url_to_fs(url, **storage_options)
492496

0 commit comments

Comments
 (0)