From 69f5c6332b45c75f61ad2c86dd4b35ca3fa9d3d8 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Thu, 20 Aug 2026 14:40:09 +0200 Subject: [PATCH] BUG: Let _get_itk_pixelid map np.int64 to itk.int64_t, instead of itk.SL Aims to fix issue https://github.com/InsightSoftwareConsortium/ITK/issues/6770, "`_get_itk_pixelid(numpy_array)` returns 32-bit `long` for `np.int64` on Windows" --- Wrapping/Generators/Python/itk/support/extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wrapping/Generators/Python/itk/support/extras.py b/Wrapping/Generators/Python/itk/support/extras.py index 24a1653dadd..55db1a51298 100644 --- a/Wrapping/Generators/Python/itk/support/extras.py +++ b/Wrapping/Generators/Python/itk/support/extras.py @@ -277,7 +277,7 @@ def _get_itk_pixelid(numpy_array_type): np.dtype(np.int8): itk.SC, np.dtype(np.int16): itk.SS, np.dtype(np.int32): itk.SI, - np.dtype(np.int64): itk.SL, + np.dtype(np.int64): itk.int64_t, np.dtype(np.float32): itk.F, np.dtype(np.float64): itk.D, np.dtype(np.complex64): itk.complex[itk.F],