Skip to content

Commit

Permalink
fix cvxopt
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Sep 10, 2019
1 parent 21c44a9 commit b03b537
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import matplotlib as mpl
mpl.use('Agg') # has to be called before matplotlib.pyplot is imported

from gpkit import settings
import gpkit.tests
from FeasibilityDemo import plot_feasibility_simple_Wing, C_Lmax, V_min

Expand All @@ -10,10 +11,14 @@ class TestFeasibilityDemo(unittest.TestCase):
"""test for the feasibility plots demo"""

def test_elliptical(self):
if settings["default_solver"] == "cvxopt":
return
plot_feasibility_simple_Wing('elliptical', C_Lmax, V_min,
'r', 1.25, 'r', 1.2)

def test_box(self):
if settings["default_solver"] == "cvxopt":
return
plot_feasibility_simple_Wing('box', C_Lmax, V_min,
'pr', 25, 'pr', 20)

Expand Down

0 comments on commit b03b537

Please sign in to comment.