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

Commit

Permalink
Merge pull request #234 from JuliaStats/anj/revert
Browse files Browse the repository at this point in the history
Revert "Fix reducedim tests for backports to 0.5"
  • Loading branch information
andreasnoack authored Feb 6, 2017
2 parents 723896e + 4dec065 commit 2f235b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/reducedim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ for Areduc in (DataArray(rand(3, 4, 5, 6)),
(1, 2, 3), (1, 3, 4), (2, 3, 4), (1, 2, 3, 4)]
# println("region = $region, skipna = $skipna")

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

0 comments on commit 2f235b4

Please sign in to comment.