Skip to content

Commit

Permalink
Merge pull request #82 from FeTS-AI/fets_2.0_master_sync
Browse files Browse the repository at this point in the history
Fets 2.0 master sync
  • Loading branch information
sarthakpati authored Feb 15, 2024
2 parents c58b76a + dd1dab9 commit 3df09a5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 35 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v3
# with:
with:
# lfs: false
# submodules: 'recursive'
submodules: 'true'

# - name: Check if the repository has changed
# run: ls -l
Expand Down Expand Up @@ -150,4 +150,3 @@ jobs:
# # This step uses the identity token to provision an ephemeral certificate
# # against the sigstore community Fulcio instance.
# run: cosign sign ghcr.io/fets-ai/front-end@${{ steps.upload.outputs.digest }}

Binary file added data/Algorithms_for_fetsTool1.0.zip
Binary file not shown.
Binary file added data/GANDLF_for_fetsTool1.0.zip
Binary file not shown.
63 changes: 31 additions & 32 deletions src/applications/Utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,38 +106,37 @@ SET( DOWNLOADED_APPS_DIR ${PROJECT_BINARY_DIR}/hausdorff95 )

IF( NOT EXISTS "${DOWNLOADED_APPS_DIR}" )

IF( NOT EXISTS "${FILE_TO_EXTRACT}" )

# do not re-download if the LFS fetch worked
IF(NOT EXISTS ${FILE_TO_EXTRACT})
# download exe from url
MESSAGE( STATUS "Downloading pre-compiled hausdorff" )
FILE(DOWNLOAD "${DOWNLOAD_LINK}" "${FILE_TO_EXTRACT}" TIMEOUT 1000000 STATUS STATUS_CODE SHOW_PROGRESS)
IF(NOT STATUS_CODE EQUAL 0)
SET( DOWNLOAD_LINK "https://github.com/CBICA/precompiledBinaries/raw/master/${PLATFORM_STRING}/Hausdorff95_${PLATFORM_STRING}.zip" )
FILE(DOWNLOAD "${DOWNLOAD_LINK}" "${FILE_TO_EXTRACT}" TIMEOUT 1000000 STATUS STATUS_CODE SHOW_PROGRESS)
IF(NOT STATUS_CODE EQUAL 0)
MESSAGE(FATAL_ERROR "Failed to download Precompiled hausdorff. Status=${STATUS_CODE}")
ENDIF()
ENDIF()
ENDIF()
ENDIF()

FILE(MAKE_DIRECTORY ${DOWNLOADED_APPS_DIR})

MESSAGE( STATUS "Extracting pre-compiled hausdorff" )
IF( EXISTS "${FILE_TO_EXTRACT}" )

EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E tar xfz ${FILE_TO_EXTRACT}
WORKING_DIRECTORY ${DOWNLOADED_APPS_DIR}
RESULT_VARIABLE RESULT_CODE
)

IF(NOT RESULT_CODE EQUAL 0)
MESSAGE( WARNING "Extracting the pre-compiled hausdorff failed" )
ENDIF()

ENDIF()
# IF( NOT EXISTS "${FILE_TO_EXTRACT}" )
# # do not re-download if the LFS fetch worked
# IF(NOT EXISTS ${FILE_TO_EXTRACT})
# # download exe from url
# MESSAGE( STATUS "Downloading pre-compiled hausdorff" )
# FILE(DOWNLOAD "${DOWNLOAD_LINK}" "${FILE_TO_EXTRACT}" TIMEOUT 1000000 STATUS STATUS_CODE SHOW_PROGRESS)
# IF(NOT STATUS_CODE EQUAL 0)
# SET( DOWNLOAD_LINK "https://github.com/CBICA/precompiledBinaries/raw/master/${PLATFORM_STRING}/Hausdorff95_${PLATFORM_STRING}.zip" )
# FILE(DOWNLOAD "${DOWNLOAD_LINK}" "${FILE_TO_EXTRACT}" TIMEOUT 1000000 STATUS STATUS_CODE SHOW_PROGRESS)
# IF(NOT STATUS_CODE EQUAL 0)
# MESSAGE(FATAL_ERROR "Failed to download Precompiled hausdorff. Status=${STATUS_CODE}")
# ENDIF()
# ENDIF()
# ENDIF()
# ENDIF()

# FILE(MAKE_DIRECTORY ${DOWNLOADED_APPS_DIR})

# MESSAGE( STATUS "Extracting pre-compiled hausdorff" )
# IF( EXISTS "${FILE_TO_EXTRACT}" )

# EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E tar xfz ${FILE_TO_EXTRACT}
# WORKING_DIRECTORY ${DOWNLOADED_APPS_DIR}
# RESULT_VARIABLE RESULT_CODE
# )

# IF(NOT RESULT_CODE EQUAL 0)
# MESSAGE( WARNING "Extracting the pre-compiled hausdorff failed" )
# ENDIF()

# ENDIF()
ENDIF()

FILE(GLOB HausdoffEXE "${DOWNLOADED_APPS_DIR}/*")
Expand Down

0 comments on commit 3df09a5

Please sign in to comment.