Skip to content

Commit

Permalink
make pylint happier
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Mar 27, 2024
1 parent 752b813 commit f5cdd4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scenarios/cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def initial_condition(xi, yi, grid):
@staticmethod
def quick_look(psi, n_threads, zlim=(-1, 1), norm=None):
"""plots the passed advectee field"""
# pylint: disable=invalid-name
# pylint: disable=invalid-name,too-many-locals
xi, yi = np.indices(psi.shape)
_, ax = pyplot.subplots(subplot_kw={"projection": "3d"})
pyplot.gca().plot_wireframe(xi + 0.5, yi + 0.5, psi, color="red", linewidth=0.5)
Expand All @@ -106,7 +106,7 @@ def quick_look(psi, n_threads, zlim=(-1, 1), norm=None):
ax.set_ylabel("y/dy")
ax.set_proj_type("ortho")

if n_threads > 1 and not numba.config.DISABLE_JIT:
if n_threads > 1 and not numba.config.DISABLE_JIT: # pylint: disable=no-member
finite = np.isfinite(psi[0, :])
span = sum(finite)
zero = np.argmax(finite > 0)
Expand Down

0 comments on commit f5cdd4f

Please sign in to comment.