Skip to content

Commit eafe59a

Browse files
committed
fix test error
Signed-off-by: sewon.jeon <[email protected]>
1 parent 4b367ab commit eafe59a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/transforms/test_generate_heatmap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ def _argmax_nd(x) -> np.ndarray:
5555

5656
# Test cases for 3D numpy outputs with explicit dtype
5757
TEST_CASES_3D_NUMPY = []
58-
for dtype in [np.float32, np.float64]:
58+
for dtype_obj in [np.float32, np.float64]:
5959
TEST_CASES_3D_NUMPY.append(
6060
[
61-
f"3d_numpy_{dtype.__name__}",
61+
f"3d_numpy_{dtype_obj.__name__}",
6262
np.array([[1.5, 2.5, 3.5]], dtype=np.float32),
63-
{"sigma": 1.0, "spatial_shape": (8, 8, 8), "dtype": dtype},
63+
{"sigma": 1.0, "spatial_shape": (8, 8, 8), "dtype": dtype_obj},
6464
(1, 8, 8, 8),
65-
dtype,
65+
dtype_obj,
6666
]
6767
)
6868

0 commit comments

Comments
 (0)