Skip to content

Commit

Permalink
Fix for fsspec 2023.10.0 (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal authored Oct 27, 2023
1 parent bfdfb51 commit 487e314
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

### Bugs fixed

- Fix catalog serialization with fsspec 2023.10.0 [#636](https://github.com/intake/intake-esm/pull/636) ([@aulemahal](https://github.com/aulemahal))

## v2023.07.07

### New features added

- Fix the link to documentation build status [#591](https://github.com/intake/intake-esm/pull/591) ([@mgrover1](https://github.com/mgrover1))
Expand Down
4 changes: 2 additions & 2 deletions intake_esm/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ def save(
# Configure the fsspec mapper and associated filenames
mapper = fsspec.get_mapper(f'{directory}', storage_options=storage_options)
fs = mapper.fs
csv_file_name = f'{mapper.fs.protocol}://{mapper.root}/{name}.csv'
json_file_name = f'{mapper.fs.protocol}://{mapper.root}/{name}.json'
csv_file_name = fs.unstrip_protocol(f'{mapper.root}/{name}.csv')
json_file_name = fs.unstrip_protocol(f'{mapper.root}/{name}.json')

data = self.dict().copy()
for key in {'catalog_dict', 'catalog_file'}:
Expand Down

0 comments on commit 487e314

Please sign in to comment.