Skip to content

Commit c3382f7

Browse files
committed
get up to date with ruff
1 parent 180aeae commit c3382f7

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

autotest/test_gwe_drycell_cnd3.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
# Imports
2626

2727
import os
28+
29+
import flopy
2830
import numpy as np
2931
import pytest
30-
import flopy
31-
3232
from framework import TestFramework
3333

3434

@@ -145,7 +145,6 @@ def isMonotonic(A):
145145

146146

147147
def add_gwf_model(sim, gwfname, newton=False):
148-
149148
# Instantiating MODFLOW 6 groundwater flow model
150149
if newton:
151150
gwf = flopy.mf6.ModflowGwf(
@@ -275,7 +274,6 @@ def add_gwf_model(sim, gwfname, newton=False):
275274

276275

277276
def add_gwe_model(sim, gwename):
278-
279277
gwe = flopy.mf6.ModflowGwe(
280278
sim, modelname=gwename, model_nam_file="{}.nam".format(gwename)
281279
)
@@ -402,12 +400,11 @@ def add_gwe_model(sim, gwename):
402400

403401

404402
def build_models(idx, test):
405-
406403
# Base MF6 GWF model type
407404
ws = test.workspace
408405
name = cases[idx]
409406

410-
print("Building MF6 model...()".format(name))
407+
print("Building MF6 model...{}".format(name))
411408

412409
# generate names for each model
413410
gwfname1 = "gwf-" + name + "nwt1"

autotest/test_gwf_sfrsft_gwdischrg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# Test groundwater discharge to a stream and then go on to test
22
# that a transport model with a single reach works.
33

4-
import math
54
import pathlib as pl
65

76
import flopy
87
import numpy as np
98
import pytest
10-
119
from framework import TestFramework
1210

1311
cases = ["sfr-gwfout", "sfr-gwf-trnsprt"]
@@ -224,7 +222,8 @@ def check_output(idx, test):
224222
try:
225223
# load simulated concentration in SFT
226224
cobj = flopy.utils.HeadFile(
227-
sft_obs_fl, text="CONCENTRATION" # precision="double"
225+
sft_obs_fl,
226+
text="CONCENTRATION", # precision="double"
228227
)
229228
sim_conc_sft = cobj.get_alldata()
230229
except:
@@ -236,7 +235,8 @@ def check_output(idx, test):
236235
try:
237236
# load simulated concentration of groundwater
238237
cobj = flopy.utils.HeadFile(
239-
gwt_sim_conc, text="CONCENTRATION" # precision="double"
238+
gwt_sim_conc,
239+
text="CONCENTRATION", # precision="double"
240240
)
241241
conc_gw = cobj.get_alldata()
242242
except:

autotest/test_gwt_uztmvt2x1.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
# Imports
3434

3535
import os
36+
37+
import flopy
3638
import numpy as np
3739
import pytest
38-
import flopy
39-
4040
from framework import TestFramework
4141

4242
# Base simulation and model name and workspace
@@ -177,12 +177,11 @@
177177

178178

179179
def build_models(idx, test):
180-
181180
# Base MF6 GWF model type
182181
ws = test.workspace
183182
name = cases[idx]
184183

185-
print("Building MF6 model...()".format(name))
184+
print("Building MF6 model...{}".format(name))
186185

187186
# generate names for each model
188187
gwfname = "gwf-" + name

0 commit comments

Comments
 (0)