Skip to content

Commit

Permalink
Improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela committed May 9, 2023
1 parent 136a6a6 commit 5a96946
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions esmvalcore/preprocessor/_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ def grouper(product):


def get_array_module(*args):
"""Returns the array module for arguments.
"""Return the best matching array module.
If at least one of the arguments is a :class:`dask.array.Array` object,
the :mod:`dask.array` module is returned.
the :mod:`dask.array` module is returned. In all other cases the
:mod:`numpy` module is returned.
"""
for arg in args:
if isinstance(arg, da.Array):
Expand Down

0 comments on commit 5a96946

Please sign in to comment.