Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DataArray constructor allow iterables #482

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

Closed
clarkfitzg opened this issue Jul 20, 2015 · 1 comment
Closed

DataArray constructor allow iterables #482

clarkfitzg opened this issue Jul 20, 2015 · 1 comment

Comments

@clarkfitzg
Copy link
Member

The DataArray currently requires a sequence for the coords and dims. This could be generalized to allow passing iterables. Currently this raises a ValueError:

b = xray.DataArray(np.random.randn(3, 4), dims=(x for x in ('a', 'b')))

If iterables were allowed it would work. This comes up more often in Python 3. Some conversation in #466

@stale
Copy link

stale bot commented Feb 1, 2019

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity

If this issue remains relevant, please comment here or remove the stale label; otherwise it will be marked as closed automatically

@stale stale bot added the stale label Feb 1, 2019
@stale stale bot closed this as completed Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant