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

Some Python tests fail for higher number of threads #1172

Open
fabratu opened this issue Jan 30, 2024 · 0 comments
Open

Some Python tests fail for higher number of threads #1172

fabratu opened this issue Jan 30, 2024 · 0 comments

Comments

@fabratu
Copy link
Member

fabratu commented Jan 30, 2024

When executed with 48 threads, several unittests for the Python interface fail:

======================================================================
FAIL: testApproxElectricalCloseness (test_centrality.TestCentrality.testApproxElectricalCloseness)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brandtfa/scripts/test/test_centrality.py", line 55, in testApproxElectricalCloseness
    self.assertLessEqual(abs(apx[u] - pinv[u]), eps)
AssertionError: 0.11044452053538456 not less than or equal to 0.1

======================================================================
FAIL: testApproxSpanningEdge (test_centrality.TestCentrality.testApproxSpanningEdge)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brandtfa/scripts/test/test_centrality.py", line 68, in testApproxSpanningEdge
    self.assertLessEqual(abs(apxScore - exactScore), 2*eps)
AssertionError: 0.24007940334904146 not less than or equal to 0.2

======================================================================
FAIL: testForest (test_centrality.TestCentrality.testForest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/brandtfa/scripts/test/test_centrality.py", line 292, in testForest
    self.assertLessEqual(abs(apx - exact), eps)
AssertionError: 0.06750794287494666 not less than or equal to 0.05

----------------------------------------------------------------------

Reducing the number of threads mitigates this problem.

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