Skip to content

Commit 2acbee4

Browse files
alexfiklinducer
authored andcommitted
ruff: fix RUF046 int cast
1 parent 619103b commit 2acbee4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sumpy/visualization.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ def make_field_plotter_from_bbox(bbox, h, extend_factor=0):
7676

7777
from math import ceil
7878

79-
npoints = tuple(
80-
int(ceil(extent[i] / h[i]))
81-
for i in range(dimensions))
79+
npoints = tuple(ceil(extent[i] / h[i]) for i in range(dimensions))
8280

8381
return FieldPlotter(center, extent, npoints)
8482

0 commit comments

Comments
 (0)