Skip to content

#6891 issue resolved #7679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

#6891 issue resolved #7679

wants to merge 1 commit into from

Conversation

Amisha2778
Copy link

@Amisha2778 Amisha2778 commented Mar 26, 2023

Closes #6891. Changed **kwargs to kwargs in docstrings of 2 files (dataarray.py & dataset.py).

Copy link
Collaborator

@headtr1ck headtr1ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I add a comment on every occasion: You probably replaced all **kwargs by kwargs, and therefore too many.
In a lot of functions the use of **kwargs is still correct.

Also, please use the provided template for the PR description, especially the "Closes #issuenumber" part and add a more descriptive title.

@@ -7681,7 +7681,7 @@ def map_blocks(
``func`` can work on numpy arrays, it is recommended to use ``apply_ufunc``.

If none of the variables in this object is backed by dask arrays, calling this function is
equivalent to calling ``func(obj, *args, **kwargs)``.
equivalent to calling ``func(obj, *args, kwargs)``.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the previous version was correct.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I'll look into it right away. If you have any advice, please let me know.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you have to start over and only apply the changes in the docstring which you mentioned in the PR description.
All the other changes are actually wrong, since the current way is correct.

@@ -7534,7 +7534,7 @@ def filter_by_attrs(self: T_Dataset, **kwargs) -> T_Dataset:

Parameters
----------
**kwargs
kwargs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here the previous version is correct, see the function signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing extra keyword arguments to curvefit throws an exception.
2 participants