File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change 3434 uses : astral-sh/setup-uv@v3
3535 with :
3636 version : latest
37-
38- - name : Setup FreeSurfer environment
39- run : |
40- # Add FreeSurfer to PATH
41- export PATH=$FREESURFER_HOME:$PATH
42-
43- # Source FreeSurfer setup script if it exists
44- if [ -f "$FREESURFER_HOME/SetUpFreeSurfer.sh" ]; then
45- source $FREESURFER_HOME/SetUpFreeSurfer.sh
46- fi
47-
48- # Check if FreeSurfer is available
49- which mideface || echo "mideface not found in PATH"
50- echo "FREESURFER_HOME: $FREESURFER_HOME"
51- echo "PATH: $PATH"
52-
37+
5338 - name : Build package with uv
5439 run : |
5540 uv build
6045
6146 - name : Run petdeface on test data with uv run
6247 run : |
48+ # Set FreeSurfer environment for this step
49+ export FREESURFER_HOME="/usr/local/freesurfer/7.4.1"
50+ export PATH="$FREESURFER_HOME/bin:$PATH"
51+
52+ # Source FreeSurfer setup if available
53+ if [ -f "$FREESURFER_HOME/SetUpFreeSurfer.sh" ]; then
54+ source "$FREESURFER_HOME/SetUpFreeSurfer.sh"
55+ fi
56+
57+ # Run petdeface with FreeSurfer environment
6358 uv run --with dist/*.whl petdeface petdeface/data/ data_defaced/ participant --participant_label sub-01
You can’t perform that action at this time.
0 commit comments