diff --git a/ppmpy/__init__.py b/ppmpy/__init__.py index 1ac8cb3..49d6637 100644 --- a/ppmpy/__init__.py +++ b/ppmpy/__init__.py @@ -10,8 +10,7 @@ from .eigen import eigen +from .euler import Euler from .grid import FVGrid from .reconstruction import PPMInterpolant, flattening_coefficient from .riemann_exact import RiemannProblem, State - -from .euler import Euler diff --git a/ppmpy/euler.py b/ppmpy/euler.py index 100779c..0fb70f6 100644 --- a/ppmpy/euler.py +++ b/ppmpy/euler.py @@ -8,7 +8,8 @@ from ppmpy.eigen import eigen from ppmpy.grid import FVGrid -from ppmpy.reconstruction import PPMInterpolant, HSEPPMInterpolant, flattening_coefficient +from ppmpy.reconstruction import (HSEPPMInterpolant, PPMInterpolant, + flattening_coefficient) from ppmpy.riemann_exact import RiemannProblem, State diff --git a/ppmpy/grid.py b/ppmpy/grid.py index 26d6303..77c4c8d 100644 --- a/ppmpy/grid.py +++ b/ppmpy/grid.py @@ -3,8 +3,8 @@ """ -import numpy as np import matplotlib.pyplot as plt +import numpy as np class GridPlot: diff --git a/ppmpy/riemann_exact.py b/ppmpy/riemann_exact.py index 3d19093..c44496f 100644 --- a/ppmpy/riemann_exact.py +++ b/ppmpy/riemann_exact.py @@ -14,8 +14,8 @@ `q_int = rp.sample_solution()` """ -import numpy as np import matplotlib.pyplot as plt +import numpy as np from scipy import optimize diff --git a/ppmpy/tests/test_euler.py b/ppmpy/tests/test_euler.py index 36bcc33..929ae98 100644 --- a/ppmpy/tests/test_euler.py +++ b/ppmpy/tests/test_euler.py @@ -2,7 +2,7 @@ from numpy.testing import assert_array_almost_equal_nulp from ppmpy.euler import Euler, FluidVars -from ppmpy.initial_conditions import sod, acoustic_pulse +from ppmpy.initial_conditions import acoustic_pulse, sod class TestFluidVars: diff --git a/ppmpy/tests/test_gravity.py b/ppmpy/tests/test_gravity.py index b5330ea..36acab7 100644 --- a/ppmpy/tests/test_gravity.py +++ b/ppmpy/tests/test_gravity.py @@ -1,7 +1,7 @@ import numpy as np -from ppmpy.grid import FVGrid from ppmpy.gravity import constant_gravity +from ppmpy.grid import FVGrid class TestGravity: diff --git a/ppmpy/tests/test_grid.py b/ppmpy/tests/test_grid.py index 04b65e1..7271c43 100644 --- a/ppmpy/tests/test_grid.py +++ b/ppmpy/tests/test_grid.py @@ -1,5 +1,5 @@ import numpy as np -from numpy.testing import assert_array_equal, assert_array_almost_equal_nulp +from numpy.testing import assert_array_almost_equal_nulp, assert_array_equal from pytest import approx from ppmpy.grid import FVGrid diff --git a/ppmpy/tests/test_ppm_reconstruction.py b/ppmpy/tests/test_ppm_reconstruction.py index f2ce2f7..876bb88 100644 --- a/ppmpy/tests/test_ppm_reconstruction.py +++ b/ppmpy/tests/test_ppm_reconstruction.py @@ -1,5 +1,5 @@ import numpy as np -from numpy.testing import assert_array_equal, assert_array_almost_equal_nulp +from numpy.testing import assert_array_almost_equal_nulp, assert_array_equal from ppmpy.grid import FVGrid from ppmpy.reconstruction import PPMInterpolant diff --git a/ppmpy/tests/test_riemann.py b/ppmpy/tests/test_riemann.py index 4669074..0bdffcd 100644 --- a/ppmpy/tests/test_riemann.py +++ b/ppmpy/tests/test_riemann.py @@ -1,6 +1,6 @@ from pytest import approx -from ppmpy import State, RiemannProblem +from ppmpy import RiemannProblem, State class TestGrid: diff --git a/pyproject.toml b/pyproject.toml index 00addde..7972d87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ [project.urls] Homepage = "https://github.com/python-hydro/ppmpy" - +Documentation = "https://python-hydro.github.io/ppmpy" # packaging