File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -204,16 +204,27 @@ def init_bold_fit_wf(
204
204
205
205
layout = config .execution .layout
206
206
207
+ # Fitting operates on the shortest echo
208
+ # This could become more complicated in the future
209
+ bold_file = bold_series [0 ]
210
+
207
211
# Collect sbref files, sorted by EchoTime
208
212
sbref_files = get_sbrefs (
209
213
bold_series ,
210
214
entity_overrides = config .execution .get ().get ('bids_filters' , {}).get ('sbref' , {}),
211
215
layout = layout ,
212
216
)
213
217
214
- # Fitting operates on the shortest echo
215
- # This could become more complicated in the future
216
- bold_file = bold_series [0 ]
218
+ basename = os .path .basename (bold_file )
219
+ sbref_msg = f"No single-band-reference found for { basename } ."
220
+ if sbref_files and "sbref" in config .workflow .ignore :
221
+ sbref_msg = f"Single-band reference file(s) found for { basename } and ignored."
222
+ sbref_files = []
223
+ elif sbref_files :
224
+ sbref_msg = "Using single-band reference file(s) {}." .format (
225
+ "," .join ([os .path .basename (sbf ) for sbf in sbref_files ])
226
+ )
227
+ config .loggers .workflow .info (sbref_msg )
217
228
218
229
# Get metadata from BOLD file(s)
219
230
entities = extract_entities (bold_series )
You can’t perform that action at this time.
0 commit comments