Skip to content

Comments

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

Merged
jhamman merged 3 commits intopydata:masterfrom
jhamman:deprecate/dict_dims
Aug 31, 2017
Merged

remove warning and raise error when dataset constructor is called wit…#1539
jhamman merged 3 commits intopydata:masterfrom
jhamman:deprecate/dict_dims

Conversation

@jhamman
Copy link
Member

@jhamman jhamman commented Aug 30, 2017

…h coords dict and not dims

'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