File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ before_install:
33
33
- conda install conda-build
34
34
- conda config --add channels python-control
35
35
- conda info -a
36
- - conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage slycot
36
+ - conda create -q -n test-environment python="$TRAVIS_PYTHON_VERSION" pip coverage
37
37
- source activate test-environment
38
38
# coveralls not in conda repos
39
39
- pip install coveralls
@@ -45,6 +45,11 @@ install:
45
45
46
46
# command to run tests
47
47
script :
48
+ # Before installing Slycot
49
+ - python setup.py test
50
+
51
+ # Now, get and use Slycot
52
+ - conda install slycot
48
53
- coverage run setup.py test
49
54
50
55
after_success :
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ def testBalredTruncate(self):
107
107
np .testing .assert_array_almost_equal (rsys .C , Crtrue ,decimal = 4 )
108
108
np .testing .assert_array_almost_equal (rsys .D , Drtrue ,decimal = 4 )
109
109
110
+ @unittest .skipIf (not slycot_check (), "slycot not installed" )
110
111
def testBalredMatchDC (self ):
111
112
#controlable canonical realization computed in matlab for the transfer function:
112
113
# num = [1 11 45 32], den = [1 15 60 200 60]
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ def testGramWc(self):
71
71
Wc = gram (sys ,'c' )
72
72
np .testing .assert_array_almost_equal (Wc , Wctrue )
73
73
74
+ @unittest .skipIf (not slycot_check (), "slycot not installed" )
74
75
def testGramRc (self ):
75
76
A = np .matrix ("1. -2.; 3. -4." )
76
77
B = np .matrix ("5. 6.; 7. 8." )
@@ -103,6 +104,7 @@ def testGramWo2(self):
103
104
Wo = gram (sys ,'o' )
104
105
np .testing .assert_array_almost_equal (Wo , Wotrue )
105
106
107
+ @unittest .skipIf (not slycot_check (), "slycot not installed" )
106
108
def testGramRo (self ):
107
109
A = np .matrix ("1. -2.; 3. -4." )
108
110
B = np .matrix ("5. 6.; 7. 8." )
You can’t perform that action at this time.
0 commit comments