Skip to content

Commit a8a53e8

Browse files
committed
lint: ruff
1 parent 5c41ff2 commit a8a53e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/snake/core/handlers/fov.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ def extract_rotated_3d_region(
4545
np.ndarray: The extracted 3D region.
4646
"""
4747
dx, dy, dz = size
48-
new_shape = tuple(round(s / z) for s, z in zip(size, zoom_factor))
48+
new_shape = tuple(round(s / z) for s, z in zip(size, zoom_factor, strict=True))
4949
rotation_matrix = R.from_euler("xyz", angles, degrees=True).as_matrix()
5050

5151
# Generate a coordinate grid for the output block
5252
X, Y, Z = np.meshgrid(
53-
*tuple(np.linspace(-d / 2, d / 2, s) for d, s in zip(size, new_shape)),
53+
*tuple(
54+
np.linspace(-d / 2, d / 2, s) for d, s in zip(size, new_shape, strict=True)
55+
),
5456
indexing="ij",
5557
)
5658
coords = np.vstack([X.ravel(), Y.ravel(), Z.ravel()])

0 commit comments

Comments
 (0)