Skip to content

Commit 718e352

Browse files
committed
latex error for CI
1 parent b6e83cb commit 718e352

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samosa/utils/post_processing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import logging
1212
import os
1313
import pickle
14+
import shutil
1415
import warnings
1516
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
1617

@@ -63,7 +64,8 @@ def _setup_plot_style(
6364
img_kwargs = _default_img_kwargs()
6465
sns.set_style("white")
6566
sns.set_context("talk")
66-
plt.rc("text", usetex=True)
67+
if shutil.which("latex"):
68+
plt.rc("text", usetex=True)
6769
plt.rc("font", family="serif")
6870
plt.rcParams.update(
6971
{

0 commit comments

Comments
 (0)