We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 606fa3f commit eda91caCopy full SHA for eda91ca
2 files changed
.travis.yml
@@ -49,6 +49,11 @@ jobs:
49
services: xvfb
50
python: "3.8"
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
57
58
# Exclude combinations that are very unlikely (and don't work)
59
exclude:
control/tests/conftest.py
@@ -0,0 +1,13 @@
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
0 commit comments