Skip to content

Coordinate -> IndexVariable and other deprecations#993

Merged
shoyer merged 2 commits into
pydata:masterfrom
shoyer:deprecations
Sep 1, 2016
Merged

Coordinate -> IndexVariable and other deprecations#993
shoyer merged 2 commits into
pydata:masterfrom
shoyer:deprecations

Conversation

@shoyer

@shoyer shoyer commented Aug 30, 2016

Copy link
Copy Markdown
Member

- Renamed the ``Coordinate`` class from xarray's low level API to
  ``IndexVariable``.
- Deprecated supplying ``coords`` as a dictionary to the ``DataArray``
  constructor without also supplying an explicit ``dims`` argument. The old
  behavior encouraged relying on the iteration order of dictionaries, which is
  a bad practice (GH727).
- Removed a number of methods deprecated since v0.7.0 or earlier:
  ``load_data``, ``vars``, ``drop_vars``, ``dump``, ``dumps`` and the
  ``variables`` keyword argument alias to ``Dataset``.
@benbovy

benbovy commented Aug 31, 2016

Copy link
Copy Markdown
Member

Maybe we should also rename Variable.to_coord() and IndexVariable.to_coord()?

@shoyer

shoyer commented Aug 31, 2016

Copy link
Copy Markdown
Member Author

Maybe we should also rename Variable.to_coord() and IndexVariable.to_coord()?

Good catch, I meant to include this.

@shoyer

shoyer commented Sep 1, 2016

Copy link
Copy Markdown
Member Author

@benbovy any preference on whether I should submit this before or after your PR?

@benbovy

benbovy commented Sep 1, 2016

Copy link
Copy Markdown
Member

@shoyer feel free to merge this when you want. I can rebase my branch and resolve conflicts if needed.

@shoyer shoyer merged commit 3ecfa66 into pydata:master Sep 1, 2016
@shoyer

shoyer commented Sep 1, 2016

Copy link
Copy Markdown
Member Author

OK, in it goes!

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.

DataArray creation prone to errors when data shares dimension shapes

2 participants