Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavigator committed Aug 25, 2023
1 parent 0175171 commit 36a44f7
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 35 deletions.
1 change: 0 additions & 1 deletion slycot/tests/test_ab01.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from numpy import array
from numpy.testing import assert_allclose, assert_equal

from scipy.linalg.lapack import dorgqr

from slycot.analysis import ab01nd
Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_ab04md.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from slycot import analysis
import numpy as np

from numpy.testing import assert_allclose

from slycot import analysis


class Test_ab04md:
"""Test ab04md.
Expand Down
6 changes: 3 additions & 3 deletions slycot/tests/test_ab08n.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# ===================================================
# ab08n* tests

from slycot import analysis
import numpy as np

from numpy.testing import assert_allclose, assert_equal
from scipy.linalg import eig
from numpy.testing import assert_equal, assert_allclose

from slycot import analysis


class Test_ab08nX:
Expand Down
8 changes: 4 additions & 4 deletions slycot/tests/test_ab13bd.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# ===================================================
# ab08n* tests

from slycot import analysis
import numpy as np
from numpy.testing import assert_allclose, assert_array_equal, assert_equal
from scipy import linalg, signal

from slycot import analysis

from scipy import linalg
from scipy import signal
from numpy.testing import assert_equal, assert_allclose, assert_array_equal

class Test_ab13bd:
""" Test regular pencil construction ab08nX with input parameters
Expand Down
3 changes: 1 addition & 2 deletions slycot/tests/test_ab13md.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
from numpy.testing import assert_allclose, assert_array_less

import pytest
from numpy.testing import assert_allclose, assert_array_less

from slycot import ab13md

Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_ag08bd.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Verify ag08bd with input parameters according to example in documentation."""

from slycot import analysis
import numpy as np

from numpy.testing import assert_almost_equal, assert_equal

from slycot import analysis

# test1 input parameters

test1_l = 9
Expand Down
4 changes: 3 additions & 1 deletion slycot/tests/test_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# repagh <rene.vanpaassen@gmail.com, May 2020

import pytest
from .test_exceptions import assert_docstring_parse

from slycot import analysis
from slycot.exceptions import SlycotArithmeticError, SlycotResultWarning

from .test_exceptions import assert_docstring_parse


@pytest.mark.parametrize(
'fun, exception_class, erange, checkvars',
Expand Down
1 change: 1 addition & 0 deletions slycot/tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

from inspect import getmembers, isfunction

import pytest

from slycot import examples
Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

import pytest

from slycot.exceptions import raise_if_slycot_error, \
SlycotError, SlycotWarning, SlycotParameterError
from slycot import _wrapper
from slycot.exceptions import (SlycotError, SlycotParameterError,
SlycotWarning, raise_if_slycot_error)


def assert_docstring_parse(docstring, exception_class, erange, checkvars={}):
Expand Down
3 changes: 2 additions & 1 deletion slycot/tests/test_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# test_mc.py - test suite for polynomial and rational function manipulation
# bnavigator <code@bnavigator.de>, Aug 2019

import pytest
import re

import pytest

from slycot import mc01td
from slycot.exceptions import SlycotResultWarning

Expand Down
12 changes: 6 additions & 6 deletions slycot/tests/test_sb.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ===================================================
# sb* synthesis tests

from slycot import synthesis
from slycot.exceptions import raise_if_slycot_error, \
SlycotParameterError, SlycotArithmeticError, \
SlycotResultWarning

import pytest
from numpy import array, eye, zeros
from numpy.testing import assert_allclose, assert_raises
import pytest

from slycot import synthesis
from slycot.exceptions import (SlycotArithmeticError, SlycotParameterError,
SlycotResultWarning, raise_if_slycot_error)

from .test_exceptions import assert_docstring_parse


Expand Down
5 changes: 3 additions & 2 deletions slycot/tests/test_sg02ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# test_sg02ad.py - test suite for ricatti equation solving
# RvP, 19 Jun 2017

from slycot import synthesis
import numpy as np

from numpy.testing import assert_almost_equal

from slycot import synthesis


def test_sg02ad_case1():
n = 3
m = 1
Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_sg03ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# test_sg03ad.py - test suite for stability margin commands
# RvP, 15 Jun 2017

from slycot import synthesis
import numpy as np

from numpy.testing import assert_almost_equal

from slycot import synthesis

# test cases from
# Penzl T., Numerical Solution of Generalized Lyapunov Equations
# http://www.qucosa.de/fileadmin/data/qucosa/documents/4168/data/b002.pdf
Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_tb05ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

import sys

import pytest
import numpy as np
from scipy.linalg import matrix_balance, eig
import pytest
from numpy.testing import assert_almost_equal
from scipy.linalg import eig, matrix_balance

from slycot import transform
from slycot.exceptions import SlycotArithmeticError, SlycotParameterError
Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_tg01ad.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ===================================================
# tg01ad tests

from slycot import transform
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal, assert_raises

from numpy.testing import assert_raises, assert_almost_equal, assert_equal
from slycot import transform

# test1 input parameters

Expand Down
4 changes: 2 additions & 2 deletions slycot/tests/test_tg01fd.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ===================================================
# tg01fd tests

from slycot import transform
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal, assert_raises

from numpy.testing import assert_raises, assert_almost_equal, assert_equal
from slycot import transform

# test1 input parameters
test1_l = 4
Expand Down
4 changes: 3 additions & 1 deletion slycot/tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# repagh <rene.vanpaassen@gmail.com, May 2020

import pytest
from .test_exceptions import assert_docstring_parse

from slycot import transform as tf
from slycot.exceptions import SlycotArithmeticError

from .test_exceptions import assert_docstring_parse


@pytest.mark.parametrize(
'fun, exception_class, erange, checkvars',
Expand Down

0 comments on commit 36a44f7

Please sign in to comment.