From 6f344fb9e6ba00e250d7247e2fddc558829487de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Fri, 6 Nov 2026 08:53:37 -0500 Subject: [PATCH 1/2] ENH: Add .gitattributes file for linter action The clang-format linter action checks only files with the hooks.style=clangformat attribute, and fails when none have it. --- .gitattributes | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..67f1724 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Custom attribute to mark sources as using our C++/C code style. +[attr]our-c-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,clangformat +*.c our-c-style +*.h our-c-style +*.cxx our-c-style +*.hxx our-c-style +*.txx our-c-style + +# Custom attribute to mark sources as using our CMake code style. +[attr]our-cmake-style whitespace=tab-in-indent,no-lf-at-eof hooks.style=cmakeformat +*.txt our-cmake-style +*.cmake our-cmake-style +*.wrap our-cmake-style +CMakeLists.txt our-cmake-style + +# ExternalData content links must have LF newlines +*.md5 crlf=input +*.sha512 crlf=input +*.cid crlf=input + +# ghostflow-director GitHub automatic check for maximum repository file size +* hooks-max-size=100000 From 293a7c467054b6f4f19490b80df327f974934f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Fri, 6 Nov 2026 08:39:30 -0500 Subject: [PATCH 2/2] COMP: Use SpacePrecisionType for direction data in DICOMOrient GTest vnl_matrix_fixed cannot be initialized from a double array when ITK_USE_FLOAT_SPACE_PRECISION is ON. --- test/itkDICOMOrientImageFilterGTest.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/itkDICOMOrientImageFilterGTest.cxx b/test/itkDICOMOrientImageFilterGTest.cxx index 1b9620c..53b4ad9 100644 --- a/test/itkDICOMOrientImageFilterGTest.cxx +++ b/test/itkDICOMOrientImageFilterGTest.cxx @@ -451,9 +451,9 @@ TEST(DICOMOrientation, DirectionCosinesToOrientation) d(0, 2) = 1; EXPECT_EQ(OE::SPL, DICOMOrientation::DirectionCosinesToOrientation(d)); - const double data[] = { 0.5986634407395047, 0.22716302314740483, -0.768113953548866, - 0.5627936241740271, 0.563067040943212, 0.6051601804419384, - 0.5699696670095713, -0.794576911518317, 0.20924175102261847 }; + constexpr itk::SpacePrecisionType data[]{ 0.5986634407395047, 0.22716302314740483, -0.768113953548866, + 0.5627936241740271, 0.563067040943212, 0.6051601804419384, + 0.5699696670095713, -0.794576911518317, 0.20924175102261847 }; ImageType::DirectionType::InternalMatrixType m{ data }; d.GetVnlMatrix() = m; EXPECT_EQ(OE::PIR, DICOMOrientation::DirectionCosinesToOrientation(d));