File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 7474}
7575
7676
77+ T1W_ONLY = BASE_LAYOUT .copy ()
78+ T1W_ONLY ['01' ]['anat' ] = [{'suffix' : 'T1w' }]
79+
80+ T2W_ONLY = T1W_ONLY .copy ()
81+ T2W_ONLY ['01' ]['anat' ] = [{'suffix' : 'T2w' }]
82+
83+
7784@pytest .fixture (scope = 'module' , autouse = True )
7885def _quiet_logger ():
7986 import logging
@@ -91,11 +98,17 @@ def _reset_sdcflows_registry():
9198 clear_registry ()
9299
93100
94- @pytest .fixture (scope = 'module' )
95- def bids_root (tmp_path_factory ):
101+ @pytest .fixture (scope = 'module' , params = [BASE_LAYOUT , T1W_ONLY , T2W_ONLY ])
102+ def bids_root (tmp_path_factory , request ):
103+ """
104+ Create a BIDS skeleton for various input types:
105+ - Full inputs (T1w + T2w)
106+ - T1w only
107+ - T2w only
108+ """
96109 base = tmp_path_factory .mktemp ('base' )
97110 bids_dir = base / 'bids'
98- generate_bids_skeleton (bids_dir , BASE_LAYOUT )
111+ generate_bids_skeleton (bids_dir , request . param )
99112
100113 # Ensure age information is available
101114 df = pd .DataFrame ({'participant_id' : ['sub-01' ], 'age_months' : ['1' ]})
You can’t perform that action at this time.
0 commit comments