-
Notifications
You must be signed in to change notification settings - Fork 21
Fix broadcast for 0.5 #123
Conversation
Hmmm, looks like this breaks 0.4. We also still have a few other fixes needed for 0.5 (which is why that check failed). |
The push failed because I hadn't pulled Milan's fixes for the other stuff. The PR failed because I forgot I couldn't just nix all the old definitions >_> Fixing that now. |
Current coverage is 82.96%@@ master #123 diff @@
==========================================
Files 13 13
Lines 677 716 +39
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 530 594 +64
+ Misses 147 122 -25
Partials 0 0
|
"Rebasing" this in a crude yet (hopefully effective) manner. |
Comments/suggestions @quinnj @nalimilan ? |
nullcheck | ||
end | ||
|
||
@generated function Base.Broadcast._broadcast!{M,XT,nargs}(f, Z::NullableArray, indexmaps::M, Xs::XT, ::Type{Val{nargs}}; lift=false) |
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.
Cut line at 92 chars.
Cool. I could only make superficial comments. Please merge and tag a new release as soon as you can! |
Travis is happy :) |
Transition to broadcast interface in JuliaLang/julia@522547b
@quinnj @nalimilan I don't know what to make of the push failure. I can't recreate it locally. Possibly just some floating point weirdness? Though I don't see how that would be possible... EDIT: It's especially weird, since the push and pr versions should be identical. |
I restarted the build. I'll also pull locally to see if I can reproduce. |
Must have been intermittent; it all looks good now. |
Hmmm.....any idea what the map failure is, @davidagold? https://travis-ci.org/JuliaStats/NullableArrays.jl/jobs/139840111 |
... No? When did that happen? Edit: master seems fine locally... |
This PR transitions the NullableArrays
broadcast
interface to incorporate that present in base: https://github.com/JuliaLang/julia/blob/913b24de9c68b6c79a767bc2f6caacea249b3198/base/broadcast.jl. Functionality remains the same. I made one minor revision to the tests, which originally checked (for some reason) thatbroadcast!
andmap!
give identical behavior when fed only a single array argument. They don't -- see JuliaLang/julia#12277. The fact that those tests were ever not problematic means that the semantics ofbroadcast
specialized forNullableArray
arguments were not consistent with those in base. Now they are.