You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...then var_names doesn't seem to do anything; I get back a DataArray anyway (which is great!). But it still requires passing something, so I'm just passing Runner(gen, var_names=["foo"]) atm.
Could we avoid having to pass anything there? Or is there a different construction I should be choosing?
The text was updated successfully, but these errors were encountered:
It should work with var_names=None which is buried in the docstrings here. By default var_names is required rather than being a default simply because handling DataSet / DataArray was functionality added later. But would happily think about making it the default - the only problem is its hard to check / helpfully error until the function is actually run etc.
@dcherian pointed me towards this library in pydata/xarray#7498, it looks awesome!
Very small point — when I have something like the linked example, but add a cast to a DataArray in the func:
...then
var_names
doesn't seem to do anything; I get back aDataArray
anyway (which is great!). But it still requires passing something, so I'm just passingRunner(gen, var_names=["foo"])
atm.Could we avoid having to pass anything there? Or is there a different construction I should be choosing?
The text was updated successfully, but these errors were encountered: