Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Alexander-Barth/NCDatasets.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Nov 16, 2018
2 parents cad4fc2 + 78d3aa1 commit 85c0bd0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/NCDatasets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1419,9 +1419,14 @@ function nomissing(da::Array{Union{T,Missing},N}) where {T,N}
end

if VERSION >= v"0.7.0-beta.0"
return replace(da, missing => da[1])
if isempty(da)
return Array{T,N}([])
else
return replace(da, missing => da[1])
end
else
return Array{T}(da)
# Illegal instruction (core dumped) in Julia 1.0.1
return Array{T,N}(da)
end
end

Expand Down

0 comments on commit 85c0bd0

Please sign in to comment.