Skip to content

Commit

Permalink
Merge pull request svalinn#148 from svalinn/fix_matplotlib_conflict
Browse files Browse the repository at this point in the history
Use non-interactive backend in nwl utils to avoid matplotlib cubit conflict
  • Loading branch information
connoramoreno authored Sep 11, 2024
2 parents d768c72 + 0ef292b commit 5fb677e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ channels:
- conda-forge
dependencies:
- python=3.11.6
- pip=24.0
- numpy
- pip
- numpy=1.26.4
- scipy
- scikit-learn
- cadquery
- moab==5.5.0[build=nompi_tempest_*]
- moab=5.5.1[build=nompi_tempest_*]
- cad_to_dagmc
- ca-certificates
- certifi
- openssl
- openmc=0.15.0[build=dagmc_nompi_*]
- matplotlib
- pip:
- netcdf4
Expand Down
4 changes: 3 additions & 1 deletion parastell/nwl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import pystell.read_vmec as read_vmec
import matplotlib.pyplot as plt
import concurrent.futures
from multiprocessing import cpu_count
import math
import matplotlib

matplotlib.use("agg")


def extract_ss(ss_file):
Expand Down

0 comments on commit 5fb677e

Please sign in to comment.