From 40b8b8b4f12d33f0f8478a6f021c8d40c4d094e0 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 6 Sep 2024 12:00:35 -0400 Subject: [PATCH] fix flake8 --- pyro/advection/problems/smooth.py | 3 --- pyro/advection/problems/test.py | 4 ---- pyro/advection/problems/tophat.py | 3 --- pyro/advection_nonuniform/problems/slotted.py | 1 - pyro/advection_nonuniform/problems/test.py | 3 --- pyro/burgers/problems/converge.py | 3 --- pyro/burgers/problems/test.py | 3 --- pyro/burgers/problems/tophat.py | 3 --- pyro/compressible/problems/acoustic_pulse.py | 3 --- pyro/compressible/problems/advect.py | 3 --- pyro/compressible/problems/bubble.py | 3 --- pyro/compressible/problems/gresho.py | 3 --- pyro/compressible/problems/hse.py | 3 --- pyro/compressible/problems/kh.py | 1 - pyro/compressible/problems/logo.py | 3 --- pyro/compressible/problems/quad.py | 3 --- pyro/compressible/problems/ramp.py | 2 -- pyro/compressible/problems/rt.py | 3 --- pyro/compressible/problems/rt2.py | 3 --- pyro/compressible/problems/sedov.py | 2 -- pyro/compressible/problems/sod.py | 3 --- pyro/compressible/problems/test.py | 4 ---- pyro/compressible_react/problems/flame.py | 2 -- pyro/compressible_react/problems/rt.py | 3 --- pyro/diffusion/problems/gaussian.py | 3 --- pyro/diffusion/problems/test.py | 4 ---- pyro/incompressible/problems/converge.py | 1 - pyro/incompressible/problems/shear.py | 1 - pyro/incompressible_viscous/problems/cavity.py | 1 - pyro/incompressible_viscous/problems/converge.py | 1 - pyro/incompressible_viscous/problems/shear.py | 1 - pyro/lm_atm/problems/bubble.py | 3 --- pyro/lm_atm/problems/gresho.py | 3 --- pyro/swe/problems/acoustic_pulse.py | 3 --- pyro/swe/problems/advect.py | 3 --- pyro/swe/problems/dam.py | 3 --- pyro/swe/problems/kh.py | 1 - pyro/swe/problems/logo.py | 3 --- pyro/swe/problems/quad.py | 3 --- pyro/swe/problems/test.py | 4 ---- 40 files changed, 105 deletions(-) diff --git a/pyro/advection/problems/smooth.py b/pyro/advection/problems/smooth.py index 5b84c3cd1..b941c9a6a 100644 --- a/pyro/advection/problems/smooth.py +++ b/pyro/advection/problems/smooth.py @@ -1,8 +1,5 @@ -import sys - import numpy -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.smooth" diff --git a/pyro/advection/problems/test.py b/pyro/advection/problems/test.py index 077c61148..59229ff88 100644 --- a/pyro/advection/problems/test.py +++ b/pyro/advection/problems/test.py @@ -1,7 +1,3 @@ -import sys - -from pyro.mesh import patch - DEFAULT_INPUTS = None PROBLEM_PARAMS = {} diff --git a/pyro/advection/problems/tophat.py b/pyro/advection/problems/tophat.py index 7e3131e3b..b108d6119 100644 --- a/pyro/advection/problems/tophat.py +++ b/pyro/advection/problems/tophat.py @@ -1,6 +1,3 @@ -import sys - -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.tophat" diff --git a/pyro/advection_nonuniform/problems/slotted.py b/pyro/advection_nonuniform/problems/slotted.py index 686f65cc7..17c4ae922 100755 --- a/pyro/advection_nonuniform/problems/slotted.py +++ b/pyro/advection_nonuniform/problems/slotted.py @@ -1,6 +1,5 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.slotted" diff --git a/pyro/advection_nonuniform/problems/test.py b/pyro/advection_nonuniform/problems/test.py index 4b3e907af..f99f6c860 100755 --- a/pyro/advection_nonuniform/problems/test.py +++ b/pyro/advection_nonuniform/problems/test.py @@ -1,6 +1,3 @@ -from pyro.mesh import patch -from pyro.util import msg - DEFAULT_INPUTS = None PROBLEM_PARAMS = {} diff --git a/pyro/burgers/problems/converge.py b/pyro/burgers/problems/converge.py index a2483b5f2..5b7bf2500 100644 --- a/pyro/burgers/problems/converge.py +++ b/pyro/burgers/problems/converge.py @@ -1,8 +1,5 @@ -import sys - import numpy -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.converge.64" diff --git a/pyro/burgers/problems/test.py b/pyro/burgers/problems/test.py index d1762e452..97dbd7b4c 100644 --- a/pyro/burgers/problems/test.py +++ b/pyro/burgers/problems/test.py @@ -1,6 +1,3 @@ -import sys - -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.test" diff --git a/pyro/burgers/problems/tophat.py b/pyro/burgers/problems/tophat.py index 9bec7abf4..12bc595d3 100644 --- a/pyro/burgers/problems/tophat.py +++ b/pyro/burgers/problems/tophat.py @@ -1,6 +1,3 @@ -import sys - -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.tophat" diff --git a/pyro/compressible/problems/acoustic_pulse.py b/pyro/compressible/problems/acoustic_pulse.py index 4bdcf6f7f..3e00bb05e 100644 --- a/pyro/compressible/problems/acoustic_pulse.py +++ b/pyro/compressible/problems/acoustic_pulse.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import fv, patch from pyro.util import msg DEFAULT_INPUTS = "inputs.acoustic_pulse" diff --git a/pyro/compressible/problems/advect.py b/pyro/compressible/problems/advect.py index 3007bce31..516ec71e8 100644 --- a/pyro/compressible/problems/advect.py +++ b/pyro/compressible/problems/advect.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.advect.64" diff --git a/pyro/compressible/problems/bubble.py b/pyro/compressible/problems/bubble.py index cfa9a8ea0..bc72676f9 100644 --- a/pyro/compressible/problems/bubble.py +++ b/pyro/compressible/problems/bubble.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.bubble" diff --git a/pyro/compressible/problems/gresho.py b/pyro/compressible/problems/gresho.py index b7f595a68..a11af9e39 100644 --- a/pyro/compressible/problems/gresho.py +++ b/pyro/compressible/problems/gresho.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.gresho" diff --git a/pyro/compressible/problems/hse.py b/pyro/compressible/problems/hse.py index cda9c22d7..4d50b9d83 100644 --- a/pyro/compressible/problems/hse.py +++ b/pyro/compressible/problems/hse.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.hse" diff --git a/pyro/compressible/problems/kh.py b/pyro/compressible/problems/kh.py index f72ca5a30..191d3b434 100644 --- a/pyro/compressible/problems/kh.py +++ b/pyro/compressible/problems/kh.py @@ -1,6 +1,5 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.kh" diff --git a/pyro/compressible/problems/logo.py b/pyro/compressible/problems/logo.py index 7b2429d09..8f27c263a 100644 --- a/pyro/compressible/problems/logo.py +++ b/pyro/compressible/problems/logo.py @@ -1,9 +1,6 @@ -import sys - import matplotlib.pyplot as plt import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.logo" diff --git a/pyro/compressible/problems/quad.py b/pyro/compressible/problems/quad.py index 55f34b333..ffbe38840 100644 --- a/pyro/compressible/problems/quad.py +++ b/pyro/compressible/problems/quad.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.quad" diff --git a/pyro/compressible/problems/ramp.py b/pyro/compressible/problems/ramp.py index b093718cd..55d872344 100644 --- a/pyro/compressible/problems/ramp.py +++ b/pyro/compressible/problems/ramp.py @@ -1,9 +1,7 @@ import math -import sys import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.ramp" diff --git a/pyro/compressible/problems/rt.py b/pyro/compressible/problems/rt.py index 9158a9546..f22dec200 100644 --- a/pyro/compressible/problems/rt.py +++ b/pyro/compressible/problems/rt.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.rt" diff --git a/pyro/compressible/problems/rt2.py b/pyro/compressible/problems/rt2.py index 6236d2676..b738f347e 100644 --- a/pyro/compressible/problems/rt2.py +++ b/pyro/compressible/problems/rt2.py @@ -3,11 +3,8 @@ how the growth rate depends on wavenumber. """ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.rt2" diff --git a/pyro/compressible/problems/sedov.py b/pyro/compressible/problems/sedov.py index 3bc679d3f..cafd1591a 100644 --- a/pyro/compressible/problems/sedov.py +++ b/pyro/compressible/problems/sedov.py @@ -1,9 +1,7 @@ import math -import sys import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.sedov" diff --git a/pyro/compressible/problems/sod.py b/pyro/compressible/problems/sod.py index d4127908a..23ca97b5d 100644 --- a/pyro/compressible/problems/sod.py +++ b/pyro/compressible/problems/sod.py @@ -1,6 +1,3 @@ -import sys - -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.sod.x" diff --git a/pyro/compressible/problems/test.py b/pyro/compressible/problems/test.py index 8a160d727..b2b5b2bf2 100644 --- a/pyro/compressible/problems/test.py +++ b/pyro/compressible/problems/test.py @@ -1,7 +1,3 @@ -import sys - -from pyro.mesh import patch - DEFAULT_INPUTS = None PROBLEM_PARAMS = {} diff --git a/pyro/compressible_react/problems/flame.py b/pyro/compressible_react/problems/flame.py index ffac3d19f..3ee41b6fd 100644 --- a/pyro/compressible_react/problems/flame.py +++ b/pyro/compressible_react/problems/flame.py @@ -1,9 +1,7 @@ import math -import sys import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.flame" diff --git a/pyro/compressible_react/problems/rt.py b/pyro/compressible_react/problems/rt.py index 9e6901323..c51c1c73d 100644 --- a/pyro/compressible_react/problems/rt.py +++ b/pyro/compressible_react/problems/rt.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.rt" diff --git a/pyro/diffusion/problems/gaussian.py b/pyro/diffusion/problems/gaussian.py index ff7734fa2..5ab52a10b 100644 --- a/pyro/diffusion/problems/gaussian.py +++ b/pyro/diffusion/problems/gaussian.py @@ -1,8 +1,5 @@ -import sys - import numpy -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.gaussian" diff --git a/pyro/diffusion/problems/test.py b/pyro/diffusion/problems/test.py index 1c852035e..b34c09a6d 100644 --- a/pyro/diffusion/problems/test.py +++ b/pyro/diffusion/problems/test.py @@ -1,7 +1,3 @@ -import sys - -from pyro.mesh import patch - DEFAULT_INPUTS = None PROBLEM_PARAMS = {} diff --git a/pyro/incompressible/problems/converge.py b/pyro/incompressible/problems/converge.py index 7062db4c5..6d1e810fa 100644 --- a/pyro/incompressible/problems/converge.py +++ b/pyro/incompressible/problems/converge.py @@ -28,7 +28,6 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.converge.64" diff --git a/pyro/incompressible/problems/shear.py b/pyro/incompressible/problems/shear.py index 981f8fa70..e2ce51da7 100644 --- a/pyro/incompressible/problems/shear.py +++ b/pyro/incompressible/problems/shear.py @@ -18,7 +18,6 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.shear" diff --git a/pyro/incompressible_viscous/problems/cavity.py b/pyro/incompressible_viscous/problems/cavity.py index 8cc9803e2..deaffaf7b 100644 --- a/pyro/incompressible_viscous/problems/cavity.py +++ b/pyro/incompressible_viscous/problems/cavity.py @@ -10,7 +10,6 @@ https://www.fluid.tuwien.ac.at/HendrikKuhlmann?action=AttachFile&do=get&target=LidDrivenCavity.pdf """ -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.cavity" diff --git a/pyro/incompressible_viscous/problems/converge.py b/pyro/incompressible_viscous/problems/converge.py index 3f0516d99..e968ec678 100644 --- a/pyro/incompressible_viscous/problems/converge.py +++ b/pyro/incompressible_viscous/problems/converge.py @@ -27,7 +27,6 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.converge.64" diff --git a/pyro/incompressible_viscous/problems/shear.py b/pyro/incompressible_viscous/problems/shear.py index 981f8fa70..e2ce51da7 100644 --- a/pyro/incompressible_viscous/problems/shear.py +++ b/pyro/incompressible_viscous/problems/shear.py @@ -18,7 +18,6 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.shear" diff --git a/pyro/lm_atm/problems/bubble.py b/pyro/lm_atm/problems/bubble.py index f90945afb..abdb2b0b4 100644 --- a/pyro/lm_atm/problems/bubble.py +++ b/pyro/lm_atm/problems/bubble.py @@ -1,8 +1,5 @@ -import sys - import numpy -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.bubble" diff --git a/pyro/lm_atm/problems/gresho.py b/pyro/lm_atm/problems/gresho.py index c4824d1cb..430461087 100644 --- a/pyro/lm_atm/problems/gresho.py +++ b/pyro/lm_atm/problems/gresho.py @@ -1,8 +1,5 @@ -import sys - import numpy -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.gresho" diff --git a/pyro/swe/problems/acoustic_pulse.py b/pyro/swe/problems/acoustic_pulse.py index e687046d8..1deea825d 100644 --- a/pyro/swe/problems/acoustic_pulse.py +++ b/pyro/swe/problems/acoustic_pulse.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.acoustic_pulse" diff --git a/pyro/swe/problems/advect.py b/pyro/swe/problems/advect.py index 40e0d5125..ebf301eb1 100644 --- a/pyro/swe/problems/advect.py +++ b/pyro/swe/problems/advect.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.advect" diff --git a/pyro/swe/problems/dam.py b/pyro/swe/problems/dam.py index 4b13bdab2..8c555feab 100644 --- a/pyro/swe/problems/dam.py +++ b/pyro/swe/problems/dam.py @@ -1,6 +1,3 @@ -import sys - -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.dam.x" diff --git a/pyro/swe/problems/kh.py b/pyro/swe/problems/kh.py index c8571f34d..5d63ab8e9 100644 --- a/pyro/swe/problems/kh.py +++ b/pyro/swe/problems/kh.py @@ -1,6 +1,5 @@ import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.kh" diff --git a/pyro/swe/problems/logo.py b/pyro/swe/problems/logo.py index b848d94ad..e653f25c6 100644 --- a/pyro/swe/problems/logo.py +++ b/pyro/swe/problems/logo.py @@ -1,9 +1,6 @@ -import sys - import matplotlib.pyplot as plt import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.logo" diff --git a/pyro/swe/problems/quad.py b/pyro/swe/problems/quad.py index 53cb27360..e55eca26f 100644 --- a/pyro/swe/problems/quad.py +++ b/pyro/swe/problems/quad.py @@ -1,8 +1,5 @@ -import sys - import numpy as np -from pyro.mesh import patch from pyro.util import msg DEFAULT_INPUTS = "inputs.quad" diff --git a/pyro/swe/problems/test.py b/pyro/swe/problems/test.py index 07f1f23fc..3ddf94761 100644 --- a/pyro/swe/problems/test.py +++ b/pyro/swe/problems/test.py @@ -1,7 +1,3 @@ -import sys - -from pyro.mesh import patch - DEFAULT_INPTUS = None PROBLEM_PARAMS = {}