Skip to content

Commit

Permalink
Remove matplotlib in minimal test setting
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Nov 24, 2023
1 parent a33b5e7 commit 21d1b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests_minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade pip
pip install numpy cython
pip install matplotlib # required by GENN atm, to be fixed
pip install numpy cython
pip install -e .
- name: Test with pytest
Expand Down
3 changes: 2 additions & 1 deletion smt/utils/neural_net/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""

import numpy as np
import matplotlib.gridspec as gridspec

from smt.utils.neural_net.data import random_mini_batches
from smt.utils.neural_net.optimizer import Adam
from smt.utils.neural_net.activation import Tanh, Linear
Expand Down Expand Up @@ -441,6 +441,7 @@ def gradient(self, X):

def goodness_of_fit(self, X_test, Y_test, J_test=None, response=0, partial=0):
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec

assert X_test.shape[1] == Y_test.shape[1]
assert Y_test.shape[0] == Y_test.shape[0]
Expand Down

0 comments on commit 21d1b52

Please sign in to comment.