File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -136,17 +136,10 @@ def test_participant_exclusion():
136136 """Test that participant exclusion works correctly by excluding sub-02"""
137137 with tempfile .TemporaryDirectory () as temp_dir :
138138 test_dir = Path (temp_dir )
139- print (f"DEBUG: Test temp directory: { test_dir } " )
140139
141140 # Create the test directory and copy our data
142141 shutil .copytree (data_dir , test_dir / "participant_exclusion" )
143142
144- # Set FreeSurfer environment variables
145- import os
146-
147- os .environ ["FREESURFER_HOME" ] = "/Applications/freesurfer/7.4.1"
148- os .environ ["SUBJECTS_DIR" ] = "/Applications/freesurfer/7.4.1/subjects"
149-
150143 # run petdeface on the copied dataset, excluding sub-02
151144 petdeface = PetDeface (
152145 test_dir / "participant_exclusion" ,
@@ -189,9 +182,6 @@ def test_participant_exclusion():
189182 sub01_defacemasks = list (derivatives_dir .glob ("**/sub-01*defacemask*" ))
190183 sub01_lta_files = list (derivatives_dir .glob ("**/sub-01*.lta" ))
191184
192- print (f"DEBUG: sub-01 defacemasks found: { len (sub01_defacemasks )} " )
193- print (f"DEBUG: sub-01 lta files found: { len (sub01_lta_files )} " )
194-
195185 assert (
196186 len (sub01_defacemasks ) > 0
197187 ), "sub-01 should have been processed and have defacemasks"
You can’t perform that action at this time.
0 commit comments