Closed jbwexler closed 1 year ago
Note: ds004134/sub-s8177
Heads-up: I have identified the problem in MRIQC. However, both the bold
and the T1w
of this subject keep failing for a different reason:
Traceback (most recent call last):
File "/home/oesteban/.miniconda/bin/mriqc", line 8, in <module>
sys.exit(main())
File "/data/home/oesteban/workspace/mriqc/mriqc/cli/run.py", line 40, in main
parse_args()
File "/data/home/oesteban/workspace/mriqc/mriqc/cli/parser.py", line 456, in parse_args
config.from_dict(vars(opts))
File "/data/home/oesteban/workspace/mriqc/mriqc/config.py", line 587, in from_dict
execution.load(settings)
File "/data/home/oesteban/workspace/mriqc/mriqc/config.py", line 227, in load
cls.init()
File "/data/home/oesteban/workspace/mriqc/mriqc/config.py", line 464, in init
cls._layout = BIDSLayout(
File "/home/oesteban/.miniconda/lib/python3.9/site-packages/bids/layout/layout.py", line 154, in __init__
indexer(self)
File "/home/oesteban/.miniconda/lib/python3.9/site-packages/bids/layout/index.py", line 151, in __call__
self._index_metadata()
File "/home/oesteban/.miniconda/lib/python3.9/site-packages/bids/layout/index.py", line 467, in _index_metadata
raise BIDSConflictingValuesError(
bids.exceptions.BIDSConflictingValuesError: Conflicting values found for entity 'datatype' in filename /data/datasets/ds004134/sub-s8177/ses-01/anat/sub-s8177_ses-01_T1w.nii.gz (value='anat') versus its JSON sidecar (value='UInt16LE'). Please reconcile this discrepancy.
Indeed, opening the JSON sidecar immediately reveals that a datatype
metadata key is defined. We probably want the BIDS validator to check entities are not overridden by metadata
This is more a problem with pybids combining metadata sources into a single table. If there isn't a way to warn and drop on this instead of erroring, we should add that.
I haven't run into this in a while so I'm going to close this issue.
Lots of recent MRIQC runs have been failing with this error. Using an older version of mriqc seems to solve the problem.
I also started getting fmriprep errors w v 23.0.0 but I haven't tested older versions. I don't know if these are related.