Skip to content

Commit

Permalink
Fix how storage_options is passed to get_mapper. (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
garciampred authored Sep 18, 2024
1 parent 7ca5aa6 commit 6ba67e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intake_esm/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def save(
directory = os.getcwd()

# Configure the fsspec mapper and associated filenames
mapper = fsspec.get_mapper(f'{directory}', storage_options=storage_options)
storage_options = storage_options if storage_options is not None else {}
mapper = fsspec.get_mapper(f'{directory}', **storage_options)
fs = mapper.fs
csv_file_name = fs.unstrip_protocol(f'{mapper.root}/{name}.csv')
json_file_name = fs.unstrip_protocol(f'{mapper.root}/{name}.json')
Expand Down

0 comments on commit 6ba67e1

Please sign in to comment.