• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

python-control / python-control / 30684662374

01 Aug 2026 04:49AM UTC coverage: 90.747% (-3.8%) from 94.568%
30684662374

Pull #1220

github

web-flow
Merge dcc6bf217 into 75a658b6f
Pull Request #1220: Add dlqe filter-form gain option

9543 of 10516 relevant lines covered (90.75%)

1.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.87
control/exception.py
1
# exception.py - exception definitions for the control package
2
#
3
# Initial author: Richard M. Murray
4
# Creation date: 31 May 2010
5

6
"""Exception definitions for the control package."""
7

8
class ControlSlycot(ImportError):
2✔
9
    """Slycot import failed."""
10
    pass
2✔
11

12
class ControlDimension(ValueError):
2✔
13
    """Raised when dimensions of system objects are not correct."""
14
    pass
2✔
15

16
class ControlArgument(TypeError):
2✔
17
    """Raised when arguments to a function are not correct."""
18
    pass
2✔
19

20
class ControlIndexError(IndexError):
2✔
21
    """Raised when arguments to an indexed object are not correct."""
22
    pass
2✔
23

24
class ControlMIMONotImplemented(NotImplementedError):
2✔
25
    """Function is not currently implemented for MIMO systems."""
26
    pass
2✔
27

28
class ControlNotImplemented(NotImplementedError):
2✔
29
    """Functionality is not yet implemented."""
30
    pass
2✔
31

32
# Utility function to see if Slycot is installed
33
slycot_installed = None
2✔
34
def slycot_check():
2✔
35
    """Return True if Slycot is installed, otherwise False."""
36
    global slycot_installed
37
    if slycot_installed is None:
2✔
38
        try:
2✔
39
            import slycot  # noqa: F401
2✔
40
            slycot_installed = True
×
41
        except:
2✔
42
            slycot_installed = False
2✔
43
    return slycot_installed
2✔
44

45

46
# Utility function to see if pandas is installed
47
pandas_installed = None
2✔
48
def pandas_check():
2✔
49
    """Return True if pandas is installed, otherwise False."""
50
    global pandas_installed
51
    if pandas_installed is None:
2✔
52
        try:
2✔
53
            import pandas  # noqa: F401
2✔
54
            pandas_installed = True
×
55
        except:
2✔
56
            pandas_installed = False
2✔
57
    return pandas_installed
2✔
58

59
# Utility function to see if cvxopt is installed
60
cvxopt_installed = None
2✔
61
def cvxopt_check():
2✔
62
    """Return True if cvxopt is installed, otherwise False."""
63
    global cvxopt_installed
64
    if cvxopt_installed is None:
2✔
65
        try:
2✔
66
            import cvxopt  # noqa: F401
2✔
67
            cvxopt_installed = True
1✔
68
        except:
1✔
69
            cvxopt_installed = False
1✔
70
    return cvxopt_installed
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc