Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 2f235b4

Browse files
authored
Merge pull request #234 from JuliaStats/anj/revert
Revert "Fix reducedim tests for backports to 0.5"
2 parents 723896e + 4dec065 commit 2f235b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/reducedim.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ for Areduc in (DataArray(rand(3, 4, 5, 6)),
127127
(1, 2, 3), (1, 3, 4), (2, 3, 4), (1, 2, 3, 4)]
128128
# println("region = $region, skipna = $skipna")
129129

130-
if VERSION < v"0.5.1-pre+19"
130+
if VERSION < v"0.6.0-dev.1121"
131131
outputs = Any[DataArray(fill(NaN, Base.reduced_dims(size(Areduc), region)))]
132132
else
133-
outputs = Any[DataArray(fill(NaN, map(length, Base.reduced_indices(indices(Areduc), region))))]
133+
outputs = Any[DataArray(fill(NaN, length.(Base.reduced_indices(indices(Areduc), region))))]
134134
end
135135
has_na = anyna(Areduc)
136136
if has_na && !skipna

0 commit comments

Comments
 (0)