Skip to content

Commit 16d4ee7

Browse files
committed
DEBUG: Debug SynthStrip
1 parent 8e62be3 commit 16d4ee7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/notebooks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
- name: Download SynthStrip model
5151
run: |
5252
wget https://ftp.nmr.mgh.harvard.edu/pub/dist/freesurfer/synthstrip/models/synthstrip.1.pt -P "${TEST_DATA_HOME}"
53+
echo "Test data home"
54+
tree ${TEST_DATA_HOME}
5355
5456
- name: Install TeX Live
5557
run: |

docs/notebooks/bold_realignment.ipynb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,17 @@
7474
" bmask_path = (\n",
7575
" OUTPUT_DIR / bold_run.parent / f\"{bold_run.name.rsplit('_', 1)[0]}_label-brain_mask.nii.gz\"\n",
7676
" )\n",
77+
" print(f\"Data path: {DATA_PATH}\")\n",
78+
" for item in DATA_PATH.iterdir():\n",
79+
" print(f\"Item: {item}\")\n",
7780
" if not bmask_path.exists():\n",
7881
" bmsk_results = SynthStrip(\n",
7982
" in_file=str(avg_path),\n",
8083
" use_gpu=True,\n",
81-
" model=DATA_PATH / \"synthstrip.1.pt\",\n",
84+
" model=str(DATA_PATH / \"synthstrip.1.pt\"),\n",
8285
" ).run(cwd=str(WORKDIR))\n",
86+
" print(f\"Outputs: {bmsk_results.outputs}\")\n",
87+
" print(f\"Out_mask: {bmsk_results.outputs.out_mask}\")\n",
8388
" copy(bmsk_results.outputs.out_mask, bmask_path)\n",
8489
"\n",
8590
" dilmask_path = (\n",

0 commit comments

Comments
 (0)