Skip to content

Commit 150b4d3

Browse files
committed
fix some more flake8 complaints
1 parent 87a0bb5 commit 150b4d3

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
max-line-length = 120
3-
ignore = E126, E127, E128, E129, E226, E241, E265, E741, F401, F403, W504, W291
3+
ignore = E126, E127, E128, E129, E226, E241, E265, E741, F401, F403, F841, W504, W291
44
exclude = docs/,lm_combustion,radhydro

compressible_sr/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
"""
66

77
__all__ = ["simulation"]
8-
9-
from .simulation import *
8+
from .simulation import Simulation

compressible_sr/interface.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ def riemann_cgf(idir, ng,
499499

500500
v2 = ustar**2 + ut_r**2
501501
lambdastar_r = 1.0 / (1.0 - v2*cstar_r**2) * (ustar*(1.0-cstar_r**2) + cstar_r *
502-
np.sqrt((1.0-v2) * (1.0 - v2*cstar_r**2 - ustar**2*(1.0-cstar_r**2))))
502+
np.sqrt((1.0-v2) *
503+
(1.0 - v2*cstar_r**2 - ustar**2*(1.0-cstar_r**2))))
503504

504505
if pstar > p_r:
505506
# the wave if a shock -- find the shock speed
@@ -749,11 +750,13 @@ def riemann_prim(idir, ng,
749750
# define eigenvalues
750751
v2 = un_l**2 + ut_l**2
751752
lambda_l = 1.0 / (1.0 - v2*c_l**2) * (un_l*(1.0-c_l**2) - c_l *
752-
np.sqrt((1.0-v2) * (1.0-v2*c_l**2 - un_l**2*(1.0-c_l**2))))
753+
np.sqrt((1.0-v2) *
754+
(1.0-v2*c_l**2 - un_l**2*(1.0-c_l**2))))
753755

754756
v2 = ustar**2 + ut_l**2
755757
lambdastar_l = 1.0 / (1.0 - v2*cstar_l**2) * \
756-
(ustar*(1.0-cstar_l**2) - cstar_l * np.sqrt((1.0-v2) * (1.0-v2*cstar_l**2 - ustar**2*(1.0-cstar_l**2))))
758+
(ustar*(1.0-cstar_l**2) - cstar_l * np.sqrt((1.0-v2) *
759+
(1.0-v2*cstar_l**2 - ustar**2*(1.0-cstar_l**2))))
757760

758761
if pstar > p_l:
759762
# the wave is a shock -- find the shock speed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
url='https://github.com/python-hydro/pyro2',
1212
license='BSD',
1313
install_requires=['numpy', 'numba', 'matplotlib', 'h5py'])
14-

util/runparams.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252

5353
# some utility functions to automagically determine what the data
5454
# types are
55+
56+
5557
def is_int(string):
5658
""" is the given string an interger? """
5759
try:

0 commit comments

Comments
 (0)