-
Notifications
You must be signed in to change notification settings - Fork 311
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
Update unit tests to leverage the datasets API #2733
Conversation
There was a problem hiding this 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.
G = cugraph.Graph(directed=True) | ||
# FIXME: Find a cleaner way to return a directed graph | ||
G = graph_file.get_graph(create_using=G) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slightly cleaner:
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)) |
Codecov Report
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. |
There was a problem hiding this 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.
rerun tests |
…0_fea-update-unit-tests
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@gpucibot merge |
rerun tests |
1 similar comment
rerun tests |
@gpucibot merge |
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