Skip to content

Make OffsetArray's axes offset themselves#46

Merged
mbauman merged 3 commits intoJuliaArrays:masterfrom
mbauman:mb/27038-offset-axes
Jun 26, 2018
Merged

Make OffsetArray's axes offset themselves#46
mbauman merged 3 commits intoJuliaArrays:masterfrom
mbauman:mb/27038-offset-axes

Conversation

@mbauman
Copy link
Copy Markdown
Member

@mbauman mbauman commented May 10, 2018

This is largely an advertisement for JuliaLang/julia#27038 — let's focus the discussion there. This implements the new scheme proposed there. Only one failure remains locally with that branch regarding the display of the axes in summary since they're now Slices.

@Evizero
Copy link
Copy Markdown
Member

Evizero commented May 10, 2018

This breaks 0.6 support, right?

@mbauman
Copy link
Copy Markdown
Member Author

mbauman commented May 10, 2018

As it stands, yes. It's not a huge diff so we could potentially fence it off with ifs, or we could make the next release v0.7-only. I've not been a contributor or maintainer of this package so I'll defer this choice to the folks here.

@mbauman mbauman force-pushed the mb/27038-offset-axes branch from d992593 to a461476 Compare June 6, 2018 17:47
@mbauman
Copy link
Copy Markdown
Member Author

mbauman commented Jun 6, 2018

Ok, I've added back compatibility with 0.6. It is rather remarkable how small of a change is required to support both 0.6 and 0.7, especially given that the behavior of axes is different between the two versions.

@mbauman mbauman merged commit 44d2349 into JuliaArrays:master Jun 26, 2018
@mbauman mbauman deleted the mb/27038-offset-axes branch June 26, 2018 20:19
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