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

Handle single PathLike objects in open_mfdataset() #5884

Merged
merged 3 commits into from
Oct 26, 2021

Conversation

pmav99
Copy link
Contributor

@pmav99 pmav99 commented Oct 22, 2021

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2021

Unit Test Results

         6 files           6 suites   57m 7s ⏱️
16 210 tests 14 474 ✔️ 1 736 💤 0
90 456 runs  82 275 ✔️ 8 181 💤 0

Results for commit 2a7f650.

♻️ This comment has been updated with latest results.

@pmav99
Copy link
Contributor Author

pmav99 commented Oct 22, 2021

I think that the errors are not related to the changes.

Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the test failures look like they are the same as in #5875.

This looks good - could you just add a note to the /doc/whatsnew.rst file?

doc/whats-new.rst Outdated Show resolved Hide resolved
@dcherian
Copy link
Contributor

Thanks @pmav99 I see this is your first PR. Welcome to xarray!

Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @pmav99 !

@TomNicholas TomNicholas merged commit df76461 into pydata:main Oct 26, 2021
dcherian added a commit to dcherian/xarray that referenced this pull request Oct 29, 2021
* main:
  Add typing_extensions as a required dependency (pydata#5911)
  pydata#5740 follow up: supress xr.ufunc warnings in tests (pydata#5914)
  Avoid accessing slow .data in unstack (pydata#5906)
  Add wradlib to ecosystem in docs (pydata#5915)
  Use .to_numpy() for quantified facetgrids (pydata#5886)
  [test-upstream] fix pd skipna=None (pydata#5899)
  Add var and std to weighted computations (pydata#5870)
  Check for path-like objects rather than Path type, use os.fspath (pydata#5879)
  Handle single `PathLike` objects in `open_mfdataset()` (pydata#5884)
snowman2 pushed a commit to snowman2/xarray that referenced this pull request Feb 9, 2022
* Handle single `PathLike` objects in `open_mfdataset()`

Fixes pydata#5881

* Update doc/whats-new.rst

Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com>
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

open_mfdataset does not handle single pathlib.Path objects but handles single str just fine
4 participants