File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 49
49
services : xvfb
50
50
python : " 3.8"
51
51
env : SCIPY=scipy SLYCOT=source
52
+ - name : " use numpy matrix"
53
+ dist : xenial
54
+ services : xvfb
55
+ python : " 3.8"
56
+ env : SCIPY=scipy SLYCOT=source PYTHON_CONTROL_STATESPACE_ARRAY=1
52
57
53
58
# Exclude combinations that are very unlikely (and don't work)
54
59
exclude :
Original file line number Diff line number Diff line change
1
+ # contest.py - pytest local plugins and fixtures
2
+
3
+ import control
4
+ import os
5
+
6
+ import pytest
7
+
8
+
9
+ @pytest .fixture (scope = "session" , autouse = True )
10
+ def use_numpy_ndarray ():
11
+ """Switch the config to use ndarray instead of matrix"""
12
+ if os .getenv ("PYTHON_CONTROL_STATESPACE_ARRAY" ) == "1" :
13
+ control .config .defaults ['statesp.use_numpy_matrix' ] = False
You can’t perform that action at this time.
0 commit comments