Skip to content

remove warning and raise error when dataset constructor is called wit… #1539

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

Merged
merged 3 commits into from
Aug 31, 2017
Merged

remove warning and raise error when dataset constructor is called wit… #1539

merged 3 commits into from
Aug 31, 2017

Conversation

jhamman
Copy link
Member

@jhamman jhamman commented Aug 30, 2017

…h coords dict and not dims

raise ValueError('inferring DataArray dimensions from '
'dictionary like ``coords`` has been '
'deprecated. Use an explicit list of '
'``dims`` instead.')
else:
for n, (dim, coord) in enumerate(zip(dims, coords)):
Copy link
Member

Choose a reason for hiding this comment

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

Can remove the else and dedent this clause now? (This is now the guard clause pattern.)

~~~~~~~~~~~~~~~~

- Supplying ``coords`` as a dictionary to the ``DataArray`` constructor without
also supplying an explicit ``dims`` argument is no longer supported. (:issue:`727`).
Copy link
Member

Choose a reason for hiding this comment

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

Say something like: was deprecated in version X but is now an error.

@jhamman jhamman mentioned this pull request Aug 31, 2017
13 tasks
@jhamman jhamman merged commit 4571d60 into pydata:master Aug 31, 2017
@jhamman jhamman deleted the deprecate/dict_dims branch August 31, 2017 19:17
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.

2 participants