Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check for latex before setting rcParams #1087

Merged
merged 2 commits into from
Apr 9, 2024
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
4 changes: 4 additions & 0 deletions .github/workflows/compas-compile-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
python-version: '3.9'
cache: 'pip' # caching pip dependencies

- name: Install TeXLive
uses: teatimeguest/setup-texlive-action@v3


- name: Install dependencies on ubuntu
if: startsWith(matrix.os, 'ubuntu-20')
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
###################################################################

import os, sys
import shutil
import numpy as np
import h5py as h5
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -45,7 +46,7 @@ def run_main_plotter(data_path, outdir='.', show=True):

fontparams = {
"font.serif": "Times New Roman",
"text.usetex": "True",
"text.usetex": str(shutil.which("latex") is not None),
"axes.grid": "True",
"grid.color": "gray",
"grid.linestyle": ":",
Expand Down
1 change: 0 additions & 1 deletion py_tests/test_plot_detailed_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from compas_python_utils.detailed_evolution_plotter import plot_detailed_evolution


@pytest.mark.skip(reason="RuntimeError: Failed to process string with tex because latex could not be found")
def test_plotter(example_compas_output_path, capsys, test_archive_dir):
data_path = example_compas_output_path
bse_detailed_out_path = os.path.join(
Expand Down
Loading