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
294 stars 130 forks source link

FIX: Avert costly ``BIDSLayout.__repr__`` calls when saving config #1239

Closed oesteban closed 5 months ago

oesteban commented 5 months ago

The layout is printed out as a string when writing the config file. The object's __repr__ shows a summary of subjects and tasks, etc., which for large datasets can be very costly.

Rewriting the layout's __repr__ effectively reduces runtime.

Resolves: #1236.

cc/ @effigies