Skip to content

Commit 5cfb872

Browse files
committed
Placate flake8
1 parent 4e6049d commit 5cfb872

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git+https://github.com/inducer/modepy.git#egg=modepy
88
git+https://github.com/inducer/pyopencl.git#egg=pyopencl
99
git+https://github.com/inducer/islpy.git#egg=islpy
1010
git+https://github.com/inducer/loopy.git#egg=loopy
11-
git+https://github.com/inducer/boxtree.git#egg=boxtree
11+
git+https://github.com/gaohao95/boxtree.git@dist-pytential#egg=boxtree
1212
git+https://github.com/inducer/arraycontext.git#egg=arraycontext
1313
git+https://github.com/inducer/meshmode.git#egg=meshmode
1414
git+https://github.com/inducer/sumpy.git#egg=sumpy

test/test_distributed.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _test_urchin_against_single_rank(ctx_factory, m, n, op_wrapper, use_tsqbx):
214214
u = 1 / dist
215215
grad_u = -diff / dist ** 3
216216
else:
217-
assert False
217+
raise RuntimeError("Unsupported dimension")
218218

219219
# }}}
220220

@@ -226,11 +226,11 @@ def _test_urchin_against_single_rank(ctx_factory, m, n, op_wrapper, use_tsqbx):
226226
density_discr.nodes(),
227227
actx.from_numpy(grad_u.ravel()), actx, strict=False)
228228

229-
context = {'u': u_dev, 'grad_u': grad_u_dev}
229+
context = {"u": u_dev, "grad_u": grad_u_dev}
230230
else:
231231
places = None
232232
op = None
233-
context = {'u': None, 'grad_u': None}
233+
context = {"u": None, "grad_u": None}
234234

235235
from pytential.symbolic.execution import bind_distributed
236236
bound_op = bind_distributed(comm, places, op)
@@ -244,7 +244,7 @@ def _test_urchin_against_single_rank(ctx_factory, m, n, op_wrapper, use_tsqbx):
244244
**params)
245245
places = GeometryCollection(qbx)
246246

247-
context = {'u': u_dev, 'grad_u': grad_u_dev}
247+
context = {"u": u_dev, "grad_u": grad_u_dev}
248248
single_node_result = bind(places, op)(actx, **context)
249249

250250
distributed_result = actx.to_numpy(flatten(distributed_result, actx))
@@ -286,16 +286,16 @@ def test_urchin_against_single_rank(
286286
if "PYTEST" in os.environ:
287287
if os.environ["PYTEST"] == "1":
288288
# Run "test_off_surface_eval" test case
289-
use_fmm = (os.environ["use_fmm"] == 'True')
290-
do_plot = (os.environ["do_plot"] == 'True')
289+
use_fmm = (os.environ["use_fmm"] == "True")
290+
do_plot = (os.environ["do_plot"] == "True")
291291

292292
_test_off_surface_eval(cl.create_some_context, use_fmm, do_plot=do_plot)
293293
elif os.environ["PYTEST"] == "2":
294294
# Run "test_urchin_against_single_rank" test case
295295
m = int(os.environ["m"])
296296
n = int(os.environ["n"])
297297
op_wrapper_str = os.environ["op_wrapper"]
298-
use_tsqbx = (os.environ["use_tsqbx"] == 'True')
298+
use_tsqbx = (os.environ["use_tsqbx"] == "True")
299299

300300
if op_wrapper_str == "single_layer_wrapper":
301301
op_wrapper = single_layer_wrapper

0 commit comments

Comments
 (0)