Skip to content

Automatic label-based alignment for math and Dataset constructor #321

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
Feb 13, 2015

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Feb 13, 2015

Fixes #186.

This will be a major breaking change for v0.4. For example, we can now do things like this:

In [5]: x = xray.DataArray(range(5), dims='x')

In [6]: x
Out[6]:
<xray.DataArray (x: 5)>
array([0, 1, 2, 3, 4])
Coordinates:
  * x        (x) int64 0 1 2 3 4

In [7]: x[:4] + x[1:]
Out[7]:
<xray.DataArray (x: 3)>
array([2, 4, 6])
Coordinates:
  * x        (x) int64 1 2 3

@shoyer shoyer added this to the 0.4 milestone Feb 13, 2015
shoyer added a commit that referenced this pull request Feb 13, 2015
Automatic label-based alignment for math and Dataset constructor
@shoyer shoyer merged commit 9fbd15d into master Feb 13, 2015
@shoyer shoyer deleted the auto-align branch March 3, 2015 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic label alignment
1 participant