diff --git a/analysis/figures/common.py b/analysis/figures/common.py index 013fb6ae..b8da876e 100644 --- a/analysis/figures/common.py +++ b/analysis/figures/common.py @@ -8,6 +8,13 @@ import warnings from string import ascii_letters +import hdf5plugin # noqa: F401 +import matplotlib +import seaborn as sns +from matplotlib import gridspec +from matplotlib import pyplot as plt +from matplotlib.figure import Figure + warnings.filterwarnings("ignore", category=FutureWarning) warnings.filterwarnings("ignore", category=UserWarning) warnings.filterwarnings("ignore", category=DeprecationWarning) @@ -15,18 +22,10 @@ os.environ["PARAFAC2_BACKEND"] = "cupy" try: - import cupy - import cupy.cuda.compiler + import cupy # noqa: F401 except ImportError: pass -import hdf5plugin # noqa: F401 -import matplotlib -import seaborn as sns -from matplotlib import gridspec -from matplotlib import pyplot as plt -from matplotlib.figure import Figure - matplotlib.use("AGG") matplotlib.rcParams["legend.labelspacing"] = 0.2 diff --git a/makefile b/makefile index 9dcbc7cb..30b02451 100644 --- a/makefile +++ b/makefile @@ -22,12 +22,12 @@ test: .venv uv sync coverage.xml: .venv - uv run pytest --junitxml=junit.xml --cov=RISE --cov-report xml:coverage.xml + uv run pytest --junitxml=junit.xml --cov=scrise --cov-report xml:coverage.xml lint: .venv uv run ruff format . uv run ruff check . --fix - uv run ty check RISE analysis + uv run ty check scrise clean: rm -rf output profile profile.svg factor_cache