ComputationalCryoEM / ASPIRE-Python

Algorithms for Single Particle Reconstruction
http://spr.math.princeton.edu
GNU General Public License v3.0
46 stars 21 forks source link

Replace saved ribosome volume with Gaussian blobs for testing #600

Open chris-langfield opened 2 years ago

chris-langfield commented 2 years ago

Many tests rely on the saved 70S ribosome volume, e.g.

https://github.com/ComputationalCryoEM/ASPIRE-Python/blob/6cb389edf21e811224cc98f4fde0d63ed778b9a7/tests/test_volume.py#L316-L323

However, we should replace these with self-contained tests based on gaussian volumes, and test mathematical properties rather than compare to hardcoded files. Good examples are below:

https://github.com/ComputationalCryoEM/ASPIRE-Python/blob/6cb389edf21e811224cc98f4fde0d63ed778b9a7/tests/test_preprocess_pipeline.py#L113-L124

https://github.com/ComputationalCryoEM/ASPIRE-Python/blob/6cb389edf21e811224cc98f4fde0d63ed778b9a7/tests/test_preprocess_pipeline.py#L82-L99

chris-langfield commented 2 years ago

Related to #617