Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions analysis/figures/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,24 @@
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)
warnings.filterwarnings("ignore", message=".*OldFormatWarning.*")

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
Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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