Open chris-langfield opened 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
Related to #617
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