From 7331df51db3c301c75e2641452db4e8352f05f48 Mon Sep 17 00:00:00 2001 From: "Hans J. Johnson" Date: Wed, 29 Apr 2026 11:12:31 -0500 Subject: [PATCH] ENH: Add ITKTestingData gh-pages URL as primary CID source The examples/CMake/ITKBenchmarksExternalData.cmake script defines its own ExternalData_URL_TEMPLATES list (overriding the inherited ITK list) and previously listed only the legacy MIDAS endpoint (midas3.kitware.com), itk.org, and the slicer.kitware.com mirror. Add the ITKTestingData gh-pages mirror at the head of the list so benchmark example data resolves through the same primary CID source as the rest of ITK. --- examples/CMake/ITKBenchmarksExternalData.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/CMake/ITKBenchmarksExternalData.cmake b/examples/CMake/ITKBenchmarksExternalData.cmake index a8ff107..ede28db 100644 --- a/examples/CMake/ITKBenchmarksExternalData.cmake +++ b/examples/CMake/ITKBenchmarksExternalData.cmake @@ -25,6 +25,11 @@ set(ExternalData_URL_TEMPLATES "" CACHE STRING file:///var/bigharddrive/%(algo)/%(hash)") mark_as_advanced(ExternalData_URL_TEMPLATES) list(APPEND ExternalData_URL_TEMPLATES + # Primary CID source: ITKTestingData gh-pages mirror. + # %(algo) substitutes the uppercase algorithm name (CID, MD5, SHA512), + # matching the case-sensitive directory layout on the gh-pages branch. + "https://insightsoftwareconsortium.github.io/ITKTestingData/%(algo)/%(hash)" + # Data published on MIDAS "https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=%(hash)&algorithm=%(algo)"