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

wrong ashist() output #468

Closed
maximelucas opened this issue Sep 1, 2023 · 1 comment
Closed

wrong ashist() output #468

maximelucas opened this issue Sep 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@maximelucas
Copy link
Collaborator

Running

import xgi
H = xgi.sunflower(3, 1, 50)

we get a correct output from H.edges.size.aslist(), that is [50, 50, 50] (three edges of size 50), but
Screenshot 2023-09-01 at 17 02 11

I guesse it's because there's only one edge size?

@maximelucas maximelucas added the bug Something isn't working label Sep 1, 2023
@nwlandry
Copy link
Collaborator

Great catch, thanks! I think I can fix this by setting bins=min(np.unique(_vals), bins) or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants