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
300 stars 132 forks source link

Inefficient BIDS Layout initialization #1236

Closed oesteban closed 7 months ago

oesteban commented 7 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.