Skip to content

Commit

Permalink
Merge pull request nipreps#1295 from nipreps/fix/1290-1282-multiecho-…
Browse files Browse the repository at this point in the history
…list-bugs-revisit

FIX: Multiecho fMRI crashing with 'unhashable type' errors
  • Loading branch information
oesteban authored May 1, 2024
2 parents 4d92bfe + 5903b80 commit da4ef9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mriqc/workflows/functional/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def fmri_qc_workflow(name='funcMRIQC'):

from mriqc.interfaces.functional import SelectEcho
from mriqc.messages import BUILDING_WORKFLOW
from mriqc.utils.misc import _flatten_list as flatten

workflow = pe.Workflow(name=name)

Expand Down Expand Up @@ -116,7 +117,7 @@ def fmri_qc_workflow(name='funcMRIQC'):
)
config.loggers.workflow.info(message)

if set(dataset) - set(full_files):
if set(flatten(dataset)) - set(flatten(full_files)):
config.workflow.inputs['bold'] = full_files
config.to_filename()

Expand Down

0 comments on commit da4ef9e

Please sign in to comment.