Skip to content

Commit

Permalink
ENH: Wrap the class with float transforms
Browse files Browse the repository at this point in the history
We need ITK 5.4, at least below version or newer:
InsightSoftwareConsortium/ITK@71c5c83

For proper Python packages, we will need 5.4RC3 or later.
  • Loading branch information
dzenanz committed Feb 6, 2024
1 parent e51bb73 commit 20870da
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@d2f5d1894abf01a93cc6581c3b2f17b508170ce3

python-build-workflow:
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@246883ef3828fc00219145aeec9efa67b9889d0b
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@3f63de316255a285b0cac4c819d3d45649738999
with:
itk-python-package-tag: v5.4rc03
secrets:
pypi_password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(ANTsWasm_INCLUDE_DIRS
)

if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
find_package(ITK 5.4 REQUIRED) # we need at least 71c5c83 from 2024-02-02 for debug mode
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
keywords='ITK InsightToolkit',
url=r'https://itk.org/',
install_requires=[
r'itk>=5.3.0'
r'itk>=5.4rc3'
]
)
7 changes: 6 additions & 1 deletion wrapping/itkANTSRegistration.wrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
itk_wrap_class("itk::ANTSRegistration" POINTER)
itk_wrap_image_filter("${WRAP_ITK_SCALAR}" 2)
foreach(d ${ITK_WRAP_IMAGE_DIMS})
foreach(t ${WRAP_ITK_SCALAR})
itk_wrap_template("F${ITKM_I${ITKM_${t}}${d}}" "${ITKT_I${ITKM_${t}}${d}}, ${ITKT_I${ITKM_${t}}${d}}, float")
itk_wrap_template("D${ITKM_I${ITKM_${t}}${d}}" "${ITKT_I${ITKM_${t}}${d}}, ${ITKT_I${ITKM_${t}}${d}}, double")
endforeach()
endforeach()
itk_end_wrap_class()

0 comments on commit 20870da

Please sign in to comment.