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 4949 services : xvfb
5050 python : " 3.8"
5151 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
5257
5358 # Exclude combinations that are very unlikely (and don't work)
5459 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