DiamondLightSource / httomo

High-throughput tomography pipeline
https://diamondlightsource.github.io/httomo/
Other
5 stars 4 forks source link

Fix reslice warning tests #269

Closed yousefmoazzam closed 6 months ago

yousefmoazzam commented 6 months ago

Fixes test_warns_with_multiple_reslices.

Another situation where more data stores are created and written to is when methods with side outputs are in the pipeline. When the store is backed by an hdf5 file, this situation leads to multiple hdf5 files being written and slowing down the pipeline, effectively taking as much time as a file-based reslice, which motivated the changes to the logging in c3227df.

To cover this case, this PR also adds a test to check for when side outputs cause multiple data stores to be created.