GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — remove python2 future imports · python-control/python-control@7d97ef9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • control
    • delay.py
    • frdata.py
    • margins.py
    • modelsimp.py
    • phaseplot.py
    • statesp.py
    • tests
      • convert_test.py
      • delay_test.py
      • iosys_test.py
      • margin_test.py
    • xferfcn.py
  • doc
    • pvtol-nested.rst
  • examples
    • check-controllability-and-observability.py
    • pvtol-nested.py
    • tfvis.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎control/delay.py‎

Copy file name to clipboardExpand all lines: control/delay.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#
4343
# $Id$
4444

45-
from __future__ import division
4645

4746
__all__ = ['pade']
4847

Collapse file

‎control/frdata.py‎

Copy file name to clipboardExpand all lines: control/frdata.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
# Author: M.M. (Rene) van Paassen (using xferfcn.py as basis)
3636
# Date: 02 Oct 12
3737

38-
from __future__ import division
3938

4039
"""
4140
Frequency response data representation and functions.
Collapse file

‎control/margins.py‎

Copy file name to clipboardExpand all lines: control/margins.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
margins.margin
1010
"""
1111

12-
# Python 3 compatibility (needs to go here)
13-
from __future__ import print_function
14-
1512
"""Copyright (c) 2011 by California Institute of Technology
1613
All rights reserved.
1714
Collapse file

‎control/modelsimp.py‎

Copy file name to clipboardExpand all lines: control/modelsimp.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040
#
4141
# $Id$
4242

43-
# Python 3 compatibility
44-
from __future__ import print_function
45-
4643
# External packages and modules
4744
import numpy as np
4845
import warnings
Collapse file

‎control/phaseplot.py‎

Copy file name to clipboardExpand all lines: control/phaseplot.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3535
# POSSIBILITY OF SUCH DAMAGE.
3636

37-
# Python 3 compatibility
38-
from __future__ import print_function
39-
4037
import numpy as np
4138
import matplotlib.pyplot as mpl
4239

Collapse file

‎control/statesp.py‎

Copy file name to clipboardExpand all lines: control/statesp.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
99
"""
1010

11-
# Python 3 compatibility (needs to go here)
12-
from __future__ import print_function
13-
from __future__ import division # for _convert_to_statespace
14-
1511
"""Copyright (c) 2010 by California Institute of Technology
1612
All rights reserved.
1713
Collapse file

‎control/tests/convert_test.py‎

Copy file name to clipboardExpand all lines: control/tests/convert_test.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
1515
"""
1616

17-
from __future__ import print_function
18-
from warnings import warn
1917

2018
import numpy as np
2119
import pytest
Collapse file

‎control/tests/delay_test.py‎

Copy file name to clipboardExpand all lines: control/tests/delay_test.py
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Primitive; ideally test to numerical limits
55
"""
66

7-
from __future__ import division
8-
97
import numpy as np
108
import pytest
119

@@ -94,4 +92,3 @@ def testT0(self):
9492
np.array(refnum), np.array(num))
9593
np.testing.assert_array_almost_equal_nulp(
9694
np.array(refden), np.array(den))
97-
Collapse file

‎control/tests/iosys_test.py‎

Copy file name to clipboardExpand all lines: control/tests/iosys_test.py
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
created for that purpose.
99
"""
1010

11-
from __future__ import print_function
1211
import re
1312

1413
import numpy as np
1514
import pytest
16-
import scipy as sp
1715

1816
import control as ct
1917
from control import iosys as ios
@@ -1270,7 +1268,7 @@ def test_lineariosys_statespace(self, tsys):
12701268
(2, 2, 'rss', ct.LinearIOSystem.__rsub__, 2, 2),
12711269
(2, 2, 2, ct.LinearIOSystem.__rsub__, 2, 2),
12721270
(2, 2, np.random.rand(2, 2), ct.LinearIOSystem.__rsub__, 2, 2),
1273-
1271+
12741272
])
12751273
def test_operand_conversion(self, Pout, Pin, C, op, PCout, PCin):
12761274
P = ct.LinearIOSystem(
Collapse file

‎control/tests/margin_test.py‎

Copy file name to clipboardExpand all lines: control/tests/margin_test.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
BG, 30 Jun 2020 -- convert to pytest, gh-425
77
BG, 16 Nov 2020 -- pick from gh-438 and add discrete test
88
"""
9-
from __future__ import print_function
109

1110
import numpy as np
1211
import pytest

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.