Skip to content

Commit

Permalink
[MOD] - always use Agg backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lpossner committed Jul 22, 2024
1 parent 8971375 commit 8acab31
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 86 deletions.
1 change: 1 addition & 0 deletions tests/pygpc_TestBench_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import matplotlib.pyplot as plt
import matplotlib.lines as mlines
import matplotlib
matplotlib.use("Agg")

folder = "/data/pt_01756/studies/pygpc/TestBenchContinuous/"
algorithms = os.listdir(folder)
Expand Down
3 changes: 3 additions & 0 deletions tests/test_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import unittest
import numpy as np

import matplotlib
matplotlib.use("Agg")

from scipy.integrate import odeint
from collections import OrderedDict

Expand Down
3 changes: 3 additions & 0 deletions tests/test_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import unittest
import numpy as np

import matplotlib
matplotlib.use("Agg")

from scipy.integrate import odeint
from collections import OrderedDict

Expand Down
3 changes: 3 additions & 0 deletions tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import unittest
import numpy as np

import matplotlib
matplotlib.use("Agg")

from scipy.integrate import odeint
from collections import OrderedDict

Expand Down
5 changes: 3 additions & 2 deletions tests/test_postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import shutil
import unittest
import numpy as np
import matplotlib.pyplot as plt

from collections import OrderedDict

import matplotlib
# matplotlib.use("Qt5Agg")
matplotlib.use("Agg")

# disable numpy warnings
import warnings
Expand Down
Loading

0 comments on commit 8acab31

Please sign in to comment.