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

bug fix for draw_dihypergraph #394

Merged
merged 5 commits into from
Jun 9, 2023

Conversation

thomasrobiglio
Copy link
Collaborator

addressing #393, I have also noticed that the previous implementation would raise an error with isolated nodes. This should fix both the problems (string nodes and isolated nodes).

fix: ability to handle integer nodes and isolated nodes
test: test for DH with str node labels and isolated nodes
style: run black

fix: ability to handle integer nodes and isolated nodes
test: test for DH with str node labels and isolated nodes
style: run black
@thomasrobiglio thomasrobiglio linked an issue Jun 9, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Patch coverage: 82.60% and project coverage change: -0.07 ⚠️

Comparison is base (7a74996) 91.02% compared to head (6180428) 90.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
- Coverage   91.02%   90.95%   -0.07%     
==========================================
  Files          47       47              
  Lines        3878     3882       +4     
==========================================
+ Hits         3530     3531       +1     
- Misses        348      351       +3     
Impacted Files Coverage Δ
xgi/drawing/draw.py 76.64% <82.60%> (-0.51%) ⬇️

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

Copy link
Collaborator

@leotrs leotrs left a comment

Choose a reason for hiding this comment

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

A couple of nitpicks :)

tests/drawing/test_draw.py Outdated Show resolved Hide resolved
xgi/drawing/draw.py Outdated Show resolved Hide resolved
xgi/drawing/draw.py Outdated Show resolved Hide resolved
@thomasrobiglio
Copy link
Collaborator Author

Thank you @leotrs, I should have addressed your comments.

@nwlandry
Copy link
Collaborator

nwlandry commented Jun 9, 2023

Looks great, @thomasrobiglio! Good to merge! I have an unrelated issue on the layout that I'll raise in an issue.

@thomasrobiglio thomasrobiglio merged commit 4402c47 into xgi-org:main Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with draw_dihypergraph
3 participants