Skip to content

Commit

Permalink
propagate kwargs for defVar
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Oct 10, 2023
1 parent 0899d3f commit d659bba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,12 @@ Defines and return the variable in the data set `ds`
copied from the variable `src`. The variable name, dimension name, attributes
and data are copied from `src`.
"""
function defVar(ds::AbstractDataset,src::AbstractVariable)
v = defVar(ds,name(src),
Array(src),
dimnames(src),
attrib=attribs(src))
function defVar(dest::AbstractDataset,srcvar::AbstractVariable; kwargs...)
v = defVar(dest,name(srcvar),
Array(srcvar),
dimnames(srcvar),
attrib=attribs(srcvar); kwargs...)

return v
end

Expand Down

0 comments on commit d659bba

Please sign in to comment.