Skip to content

Commit c114b51

Browse files
check if fillvalue is provided via kwargs
1 parent 2ea8678 commit c114b51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/variable.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ function _defVar(ds::AbstractDataset,name::SymbolOrString,data,nctype,vardimname
106106
end
107107

108108
# make sure a fill value is set
109-
if (Missing <: T) && !haskey(attrib,"_FillValue")
109+
if (Missing <: T) && !haskey(attrib,"_FillValue") &&
110+
!haskey(kwargs,:fillvalue)
110111
push!(attrib,"_FillValue" => fillvalue(nctype))
111112
end
112113

0 commit comments

Comments
 (0)