Commit 21538563 authored by Volker Neff's avatar Volker Neff
Browse files

fix type problems

parent 178afd4d
Pipeline #11046 passed with stages
in 3 minutes and 18 seconds
...@@ -103,7 +103,7 @@ end ...@@ -103,7 +103,7 @@ end
export loadData! export loadData!
function loadMissingData!(data::VariableMissingDataType{N}, var::Variable)::VariableMissingDataType where {N} function loadMissingData!(data::VariableMissingDataType{N}, var::Variable)::VariableMissingDataType where {N}
tmp = similar(data) tmp = similar(data, Float64)
streamReadVar(var.streamID, var.varID, reshape(tmp, :)) streamReadVar(var.streamID, var.varID, reshape(tmp, :))
for i in CartesianIndices(data) for i in CartesianIndices(data)
data[i] = tmp[i] == var.missValue ? missing : tmp[i] data[i] = tmp[i] == var.missValue ? missing : tmp[i]
...@@ -112,7 +112,7 @@ function loadMissingData!(data::VariableMissingDataType{N}, var::Variable)::Vari ...@@ -112,7 +112,7 @@ function loadMissingData!(data::VariableMissingDataType{N}, var::Variable)::Vari
end end
function loadMissingData!(data::VariableMissingDataType{1}, var::Variable)::VariableMissingDataType function loadMissingData!(data::VariableMissingDataType{1}, var::Variable)::VariableMissingDataType
tmp = similar(data) tmp = similar(data, Float64)
streamReadVar(var.streamID, var.varID, tmp) streamReadVar(var.streamID, var.varID, tmp)
for i in CartesianIndices(data) for i in CartesianIndices(data)
data[i] = tmp[i] == var.missValue ? missing : tmp[i] data[i] = tmp[i] == var.missValue ? missing : tmp[i]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment