Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing does not work when path supplied as pathlib object #293

Open
iainrussell opened this issue Mar 16, 2022 · 0 comments
Open

Indexing does not work when path supplied as pathlib object #293

iainrussell opened this issue Mar 16, 2022 · 0 comments

Comments

@iainrussell
Copy link
Member

e,g.

from pathlib import Path
import cfgrib

this_file = Path("tests/sample-data/uv_on_different_levels.grib")
ds = cfgrib.open_datasets(this_file)

The simple fix just involves calling os.fspath() in a couple of places, but this led to clashes between relative and absolute paths, to be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant