nipreps / mriqc

Automated Quality Control and visual reports for Quality Assessment of structural (T1w, T2w) and functional MRI of the brain
http://mriqc.readthedocs.io
Apache License 2.0
284 stars 128 forks source link

Inefficient BIDS Layout initialization #1236

Closed oesteban closed 2 months ago

oesteban commented 2 months ago

This line takes a substantial amount of time (e.g., 1 minute for a smallish dataset): https://github.com/nipreps/mriqc/blob/08aa45502afefafab0a03407ff4ba231fe9dc6ad/mriqc/cli/run.py#L56

and it comes from the fact that it tries a layout.get ignoring the cache if provided.