Skip to content

Commit

Permalink
restructure plotting import to be testable
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet committed Feb 27, 2024
1 parent f4dd1fa commit 9c71ff7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pytom_tm/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from scipy.optimize import curve_fit
from scipy.special import erf

if find_spec("matplotlib") is None or find_spec("seaborn") is None:
try:
import matplotlib.pyplot as plt
import seaborn as sns
except ModuleNotFoundError:
raise RuntimeError(
"ROC estimation can only be done when matplotlib and seaborn are installed."
)
else:
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(context="talk", style="ticks")


Expand Down

0 comments on commit 9c71ff7

Please sign in to comment.