Conversation
|
can you rebase/merge main? The backend tests have moved to |
Passing a list or tuple of paths to open_dataset failed with the generic "did not find a match in any of xarray's currently installed IO backends" message, which does not hint at the actual mistake. The check sits at the end of guess_engine, right after the existing FileNotFoundError check, so backends that do accept a sequence still get their chance to claim the input first.
for more information, see https://pre-commit.ci
d7ca89c to
72199cd
Compare
|
Rebased onto The test went with the rename — git tracked The only real conflict was in Net change is now three files:
|
| :py:func:`~xarray.open_mfdataset` when it is given a list or tuple of paths, | ||
| instead of reporting that no IO backend matched the input (:issue:`6510`). | ||
| By `NoiceHex <https://github.com/NoiceHax>`_. | ||
| - Fix async zarr tests using ``wraps`` with ``autospec=True`` on async methods, |
There was a problem hiding this comment.
This is a bad merge I assume?
Description
xr.open_dataset(["file1.nc", "file2.nc"])failed with "did not find a match in any of xarray's currently installed IO backends", which sends you off checking whether one of the files is corrupt or whether a dependency is missing. The real problem is that the argument is a list and the user wantsopen_mfdataset.guess_enginenow spots a list or tuple and says that:The check sits at the end of
guess_engine, next to the existingFileNotFoundErrorcheck and just before the genericValueError. Every backend still gets a chance to claim the input first, so a third party backend that does accept a sequence keeps working. Only the path that was already failing changes.Noice = "Noice"is added to the typos allowlist inpyproject.tomlso the whats-new byline passes pre-commit.Checklist
xr.open_dataset(list_of_paths)#6510whats-new.rstapi.rstAI Disclosure
Tools: Claude Code. The code and test were drafted with it, then I read the diff and ran the tests locally.