Skip to content

Commit

Permalink
latest tox cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettwrong committed Oct 31, 2024
1 parent 9ccc1c7 commit b65f7eb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/aspire/classification/averager2d.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import logging
import warnings
from abc import ABC, abstractmethod

import numpy as np

from aspire import config
from aspire.basis import Coef
from aspire.classification.reddy_chatterji import reddy_chatterji_register
from aspire.image import Image, ImageStacker, MeanImageStacker
Expand Down
2 changes: 1 addition & 1 deletion src/aspire/classification/rir_class2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def classify(self, diagnostics=False):
# Report some information about reflections
logger.info(
f"Count reflected: {np.sum(self.reflections)}"
f" {100 * np.mean(self.reflections) } %"
f" {100 * np.mean(self.reflections)} %"
)

return self.classes, self.reflections, self.distances
Expand Down
2 changes: 1 addition & 1 deletion src/aspire/volume/symmetry_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def parse(symmetry, dtype):
}
if symmetry_type not in map_to_sym_group.keys():
raise ValueError(
f"Symmetry type {symmetry_type} not supported. Try: {*map_to_sym_group.keys(),}."
f"Symmetry type {symmetry_type} not supported. Try: {*map_to_sym_group.keys(), }."
)

symmetry_group = map_to_sym_group[symmetry_type]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_CtfEstimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_estimate_CTF():
"Defocus Angle (degrees):"
f"\n\tASPIRE= {defocus_ang_degrees:0.2f}*"
f'\n\tCTFFIND4= {TEST_OUTPUT["defocus_ang"]:0.2f}*'
f'\n\tError: {abs((TEST_OUTPUT["defocus_ang"]- defocus_ang_degrees)/TEST_OUTPUT["defocus_ang"]) * 100:0.2f}%'
f'\n\tError: {abs((TEST_OUTPUT["defocus_ang"] - defocus_ang_degrees)/TEST_OUTPUT["defocus_ang"]) * 100:0.2f}%'
)

for param in ["cs", "amplitude_contrast", "voltage", "pixel_size"]:
Expand Down
4 changes: 0 additions & 4 deletions tests/test_averager2d.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import importlib
import logging
import os
import platform
from importlib.metadata import version
from unittest import TestCase

import numpy as np
import pytest
from packaging.version import parse as parse_version

from aspire.basis import FFBBasis2D
from aspire.classification import (
Expand Down

0 comments on commit b65f7eb

Please sign in to comment.