-
Notifications
You must be signed in to change notification settings - Fork 77
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
Unable to open converted file on Windows with datatree v0.0.4 #732
Comments
This issue is solved by upgrading xarray-datatree to 0.0.6 but that breaks a lot of other things |
From #731 (comment):
@imranmaj when you get a chance could you share those edits here, if they're small? I think this issue is an important one. I've flagged it as Milestone 0.6.1. |
@emiliom : agreed! This is an urgent issue since Windows users would run into trouble if they upgrade to v0.6.0. |
With datatree v0.0.4, In Change line 17 from
to
In Change line 25 from
to
|
Thanks! Wow, that's simple. |
Work needed, from @imranmaj :
|
On Windows,
open_converted
fails with aKeyError
onSonar\\Beam_group1
. I believe this is because of the way this function in datatree is currently written: /~https://github.com/xarray-contrib/datatree/blob/b7cdaa0d702b559a2ece763c4f4dfa707401d5a8/datatree/io.py#L14-L19The native path separator on Windows is "\", not "/", and the function uses pathlib, which uses the native path separator. This causes nested group paths to use "" on Windows, which is not a valid netCDF4 group path, causing the netCDF4 engine to error out.
The text was updated successfully, but these errors were encountered: