AFM-SPM / TopoStats

An AFM image analysis program to batch process data and obtain statistics from images
https://afm-spm.github.io/TopoStats/
GNU Lesser General Public License v3.0
55 stars 10 forks source link

[tests] Consolidate fixtures from pruning and height profiles #843

Closed ns-rse closed 1 month ago

ns-rse commented 1 month ago

Tests for pruning introduced a set of fixtures that are randomly generated skeletons which are then dilated to give corresponding heights (this gives us a "ground truth" as to what the skeleton that is being calculated by the methods was originally).

In developing tests for the height profiles I realised it would be useful to have similar examples to use in the tests. However, these were written in tests/tracing/conftest.py and aren't found when writing tests under tests/measure/test_height_profiles.py.

For now I've copied the relevant code into tests/conftest.py but after #748 is closed and before #800 is merged it would be useful to move tests/tracing/conftest.py fixtures to tests/conftest.py (this could be done on the ns-rse/818-tests-pruning branch).

ns-rse commented 1 month ago

Closed by #844