Commit f63d3ac6 authored by Clément Haëck's avatar Clément Haëck
Browse files

Fix kwargs in variables decorated functions

parent 3a6dec45
......@@ -121,9 +121,9 @@ def variables(name_in='hist', allowconcat=True):
# If string or array, we apply the function to a single variable
if isinstance(variables, str):
return func(ds[variables])
return func(ds[variables], **kwargs)
if isinstance(ds, xr.DataArray):
return func(ds)
return func(ds, **kwargs)
# List of available variables
if variables is None:
......
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