CIL icon indicating copy to clipboard operation
CIL copied to clipboard

Unittests for SPDHG take long time

Open paskino opened this issue 2 years ago • 2 comments

Unittests for SPDHG are done with the ASTRA cpu projector and on relatively large data, taking long time. We should reduce the amount of data that is processed.

https://github.com/TomographicImaging/CIL/blob/a2e45fe0aafe6329ec9027bda1cf262d4aff0284/Wrappers/Python/test/test_algorithms.py#L757-L770

paskino avatar Aug 10 '23 21:08 paskino

test_SPDHG_vs_PDHG_explicit and test_SPDHG_vs_PDHG_implicit are particularly slow. The assert_almost_equal on such a large array is probably one of the biggest costs.

gfardell avatar Apr 05 '24 10:04 gfardell

Thanks Gemma - have added this comment to #1644 PR which attempted to fix the slow tests

MargaretDuff avatar Apr 07 '24 20:04 MargaretDuff

Closed by #1898

MargaretDuff avatar Sep 18 '24 12:09 MargaretDuff