-
Notifications
You must be signed in to change notification settings - Fork 116
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
"IndexError: This vertex is missing, maybe hidden by a duplicate or another heavier point. " when using AlphaDTMFiltration #72
Comments
The error message says "maybe hidden by a duplicate". Did you check if you have 2 times the same point in your point set? |
TDA-tutorial/DTM_filtrations.py Lines 159 to 163 in 3ab7c33
The comprehension with get_point was done to be robust against the ordering changes we used to do in 3d, but we haven't done that for a long time now. On the other hand, it isn't robust to duplicated points. Should we just use Y=X ?
|
I was able to reproduce it by doing: X = SampleOnNecklace(N_obs, N_out, is_plot = True)
X[1,:] = X[0,:] # To force 2 points to be equal
# ...
simplex_tree_DTM_alpha = AlphaDTMFiltration(X, m, p, dimension_max)
# File alpha_complex.pyx:119, in gudhi.alpha_complex.AlphaComplex.get_point()
# IndexError: This vertex is missing, maybe hidden by a duplicate or another heavier point. |
Your proposal works fine and I think this is the good way to handle it |
It seems that there exist no duplicated points in my dataset, maybe two points that are too close can cause this error also? |
I don't think it can, but it is going to be hard to say much more without a complete reproducible testcase. |
It does help! Thank you! |
Hello! Thanks for your great work!
When using the AlphaDTMFiltration in DTM_filtrations.py, an IndexError: "This vertex is missing, maybe hidden by a duplicate or another heavier point." was reported. May I ask what is the cause of this error? How can I fixed it.
The text was updated successfully, but these errors were encountered: