Skip to content
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

Removes APIs that have been deprecated and have exceeded the grace period, improves *_warning_wrapper performance #4176

Merged

Conversation

rlratzel
Copy link
Contributor

@rlratzel rlratzel commented Feb 16, 2024

  • Removes APIs that have been deprecated >1 releases ago.
  • Updates tests that assumed the deprecated APIs were in place.
  • Changes the *_warning_wrapper utilities to accept a namespace name to use in the warning messages instead of making an expensive inspect.stack() call. inspect.stack() is still used if a namespace name was not provided. This reduces overall import time, especially when used with cudf.pandas (attn: @shwina).
  • Removes the redundant cugraph.utilities.api_tools module in favor of just using the equivalent pylibcugraph module directly.
  • Fixes jaccard notebook to remove deprecated API calls that are no longer present and updates it for clarity and to match the current implementation.
  • Cleans up jaccard docstrings.

…ded the grace period, adds option to bypass expensive inspect.stack() lookup when forming warning messages, removes unnecessary api_tools.py wrapper in cugraph and calls pylibcugraph api_tools directly.
…ests to not use deprecated/promoted experimental APIs.
@rlratzel rlratzel added improvement Improvement / enhancement to an existing function breaking Breaking change labels Feb 16, 2024
@rlratzel rlratzel added this to the 24.04 milestone Feb 16, 2024
@rlratzel rlratzel self-assigned this Feb 16, 2024
@rlratzel rlratzel requested a review from a team as a code owner February 16, 2024 02:51
Comment on lines +53 to +56
# namespace name if it could not be found.
call_stack = inspect.stack()
calling_frame = call_stack[1].frame
obj_namespace_name = calling_frame.f_locals.get("__name__")
Copy link
Contributor

Choose a reason for hiding this comment

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

That's really cool.

Copy link
Contributor

@naimnv naimnv left a comment

Choose a reason for hiding this comment

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

LGTM

…tation, fix errors, and clean up for clarity. Removes deprecated do_expensive_check option and cleans up docstring for jaccard functions.
@rlratzel rlratzel requested a review from a team as a code owner February 23, 2024 06:23
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Contributor

@acostadon acostadon left a comment

Choose a reason for hiding this comment

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

The explanations helped explain the algorithm.
Also, we have been keeping an overall history in the notebooks.
Do you think this should be changed?

Copy link
Contributor

@acostadon acostadon left a comment

Choose a reason for hiding this comment

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

thanks for explaining the changes.

@BradReesWork
Copy link
Member

/merge

@rapids-bot rapids-bot bot merged commit 2c478fb into rapidsai:branch-24.04 Feb 23, 2024
109 checks passed
rapids-bot bot pushed a commit that referenced this pull request Feb 28, 2024
Followup to PR #4176 to add additional detail to the Jaccard notebook.

* Adds revision history to bottom
* Adds more detail to Jaccard description
* Adds cell output
* Adds example of using the `vertex_pair` arg

Authors:
  - Rick Ratzel (https://github.com/rlratzel)

Approvers:
  - Don Acosta (https://github.com/acostadon)
  - Brad Rees (https://github.com/BradReesWork)

URL: #4189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change improvement Improvement / enhancement to an existing function python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants