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

Update unit tests to leverage the datasets API #2733

Merged

Conversation

jnke2016
Copy link
Contributor

@jnke2016 jnke2016 commented Sep 25, 2022

This PR updates the unit tests to leverage the datasets API by updating the utils functions. This greatly simplifies the graph creation from an edgelist with a single call get_edgelist() by abstracting the following calls: cudf.read_csv, from_cudf_edgelist

closes #2408

@jnke2016 jnke2016 requested a review from a team as a code owner September 25, 2022 04:32
@BradReesWork BradReesWork added this to the 22.10 milestone Sep 29, 2022
@BradReesWork BradReesWork added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Sep 29, 2022
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

I provided a suggestion to your FIXME, but I'll approve now if you decide to address it or not.

Comment on lines 175 to 177
G = cugraph.Graph(directed=True)
# FIXME: Find a cleaner way to return a directed graph
G = graph_file.get_graph(create_using=G)
Copy link
Contributor

Choose a reason for hiding this comment

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

slightly cleaner:

Suggested change
G = cugraph.Graph(directed=True)
# FIXME: Find a cleaner way to return a directed graph
G = graph_file.get_graph(create_using=G)
G = graph_file.get_graph(create_using=cugraph.Graph(directed=True))

@BradReesWork BradReesWork added the DO NOT MERGE Hold off on merging; see PR for details label Oct 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.10@eb1d740). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.10    #2733   +/-   ##
===============================================
  Coverage                ?   59.72%           
===============================================
  Files                   ?      111           
  Lines                   ?     6448           
  Branches                ?        0           
===============================================
  Hits                    ?     3851           
  Misses                  ?     2597           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Looks good to me.

@jnke2016
Copy link
Contributor Author

jnke2016 commented Oct 5, 2022

rerun tests

@rlratzel rlratzel removed the DO NOT MERGE Hold off on merging; see PR for details label Oct 5, 2022
@jnke2016 jnke2016 requested a review from a team as a code owner October 5, 2022 20:23
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@BradReesWork
Copy link
Member

@gpucibot merge

@jnke2016
Copy link
Contributor Author

jnke2016 commented Oct 5, 2022

rerun tests

1 similar comment
@jnke2016
Copy link
Contributor Author

jnke2016 commented Oct 5, 2022

rerun tests

@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit ea7ade0 into rapidsai:branch-22.10 Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENH] datasets API: Update Unit Tests
5 participants