-
Notifications
You must be signed in to change notification settings - Fork 41
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
eltype and ndims of an OffsetArray matches that of the parent #163
Conversation
Codecov Report
@@ Coverage Diff @@
## master #163 +/- ##
=========================================
Coverage ? 99.21%
=========================================
Files ? 4
Lines ? 256
Branches ? 0
=========================================
Hits ? 254
Misses ? 2
Partials ? 0
Continue to review full report at Codecov.
|
Leaving open as I'm not entirely sure if there are cases where the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need that much flexibility here.
There are many ways to insert the missing dimension without memory allocation, e.g.,
Base.ReshapedArray(A, (1, 4, 4), ())
Better to call |
Hmm, this turned out to be pretty breaking for a patch release (at least for ImageCore). In retrospect we should have bumped to 1.4. I would still call this a bug fix, but it's a pretty big (& important) one. |
I'm not familiar with ImageCore, could you point me towards an example that breaks as a consequence of this change? |
JuliaImages/ImageCore.jl#149, no worries, that breakage is "expected" and is fixable. Just that this patch release breaks something... |
Yep, @johnnychen94 is right. Really, it was misguided of OffsetArrays to implement those methods in the first place. I've released my share of patch releases that broke something. Just thought I'd mention it since these questions of what to call releases come up all the time (typically, without a crystal-clear answer). |
Fixes #162
Now
also,