-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Milestone
Description
This issue has been reported against DataArrays (JuliaStats/DataArrays.jl#233). A short reproducer without using any package can be found in this gist: running the last line multiple times gives different results for several entries which should be defined.
Basically, it appears that leaving some entries in a iterating over a BitArray
undefinedBitArray
can lead to an unexpected behaviour when using the BitArray
entries in a condition to decide whether to initialize another array's entries or not. Initializing the array fixes the randomness, as does changing the na::BitArray{N}
field to an Array{Bool,N}
.
This happens on both 0.5 and master, but not on 0.4.7.
Cc: @carlobaldassi
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior