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

Potentially erroneous assertion in Hera? #1158

Open
gspr opened this issue Dec 2, 2024 · 0 comments
Open

Potentially erroneous assertion in Hera? #1158

gspr opened this issue Dec 2, 2024 · 0 comments

Comments

@gspr
Copy link
Contributor

gspr commented Dec 2, 2024

This is really an issue in Hera, but it seems to affect GUDHI very directly. I have higher hopes of seeing a response here.

Until some weeks ago, the GUDHI Debian packages accidentally built the (C++ part of the) Python bindings with -DNDEBUG, thus disabling all assertions. After that was changed, I've been seeing the test suite fail. That failure seems to stem from this assertion in Hera. I'm not well-versed in the Hera code, but the assertion seems wrong to me. Won't every point in the loop just above the assertion pass the if_normal test in case of entirely-off-diagonal persistence diagrams? Then the assertion trivially fails.

This in turn causes problems for GUDHI – for example, this part of a test fails on the assertion failing. This might not easily get caught if one, like me, accidentally builds with -DNDEBUG.

Am I missing something?

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

No branches or pull requests

1 participant