Skip to content

Commit

Permalink
add a comment on the source of the utility function
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Jul 9, 2020
1 parent c875299 commit 603e038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pint_xarray/accessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def is_dict_like(obj):
return hasattr(obj, "keys") and hasattr(obj, "__getitem__")


# based on xarray.core.utils.either_dict_or_kwargs
def either_dict_or_kwargs(positional, keywords, method_name):
if positional is not None:
if not is_dict_like(positional):
Expand Down

0 comments on commit 603e038

Please sign in to comment.