Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Aug 28, 2024
1 parent d4b73dc commit 9f53d16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions pyro/compressible/riemann.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import numpy as np
from numba import njit

import pyro.mesh.array_indexer as ai
from pyro.util import msg


@njit(cache=True)
Expand Down
7 changes: 3 additions & 4 deletions pyro/compressible/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
import matplotlib.pyplot as plt
import numpy as np

import pyro.compressible.riemann as riemann
import pyro.compressible.unsplit_fluxes as flx
import pyro.mesh.array_indexer as ai
import pyro.mesh.boundary as bnd
from pyro.compressible import BC, derives, eos
from pyro.compressible import BC, derives, eos, riemann
from pyro.particles import particles
from pyro.simulation_null import NullSimulation, bc_setup, grid_setup
from pyro.util import msg, plot_tools
Expand Down Expand Up @@ -112,11 +111,11 @@ def initialize(self, extra_vars=None, ng=4):

# Make sure we use CGF for riemann solver when we do SphericalPolar
try:
riemann = self.rp.get_param("compressible.riemann")
riemann_method = self.rp.get_param("compressible.riemann")
except KeyError:
msg.warning("ERROR: Riemann Solver is not set.")

if my_grid.coord_type == 1 and riemann == "HLLC":
if my_grid.coord_type == 1 and riemann_method == "HLLC":
msg.fail("ERROR: Only CGF Riemann Solver is supported " +
"with SphericalPolar Geometry")

Expand Down
1 change: 0 additions & 1 deletion pyro/compressible/unsplit_fluxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
import pyro.mesh.array_indexer as ai
from pyro.compressible import riemann
from pyro.mesh import reconstruction
from pyro.util import msg


def interface_states(my_data, rp, ivars, tc, dt):
Expand Down

0 comments on commit 9f53d16

Please sign in to comment.