-
Notifications
You must be signed in to change notification settings - Fork 30
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 in add_simplices_from when specifying uid #243
Comments
Seems to also come from H = xgi.Hypergraph([({0, 1, 2}, 0, {})])
H._edge_uid
# -> count(0) # wrong but H = xgi.Hypergraph([(1,2,3)])
H._edge_uid
# -> count(1) # right not sure if we created this in the last PR and let it slip or if it was already there. |
I think it's an off-by-one in that line with |
maximelucas
added a commit
that referenced
this issue
Dec 7, 2022
maximelucas
added a commit
that referenced
this issue
Dec 8, 2022
* tests: new ones for SC class * changed from raising errors to warning for deprecated HG methods in SC class * tests: catch warning * fix: off-by-one in update_uid_counter #243 * tests: added lots for add_simplices_from * tests: catch more warnings * tests: always more in SC class * style: ran black
fixed in #247 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running
does not add
(0,1)
.That's because we update the uid after adding the subfaces... so it's trying to add
(0,1)
with id=0 but that id already exists...The text was updated successfully, but these errors were encountered: