Closed kgullikson88 closed 3 weeks ago
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!
Dupe of #4798. This is an upstream issue.
What happened?
I am trying to save an
xr.Dataset
object that has an attribute that is a list. When the list has size > 1, it works fine. But when it is a size-1 list of a string (like['foo']
) then when I open the saved dataset the list was converted into a "bare" string (i.e. just"foo"
in the example above).What did you expect to happen?
I would expect that saving the file would work the same way regardless of the list length
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment