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

Node ``mriqc.interfaces.functional.Spikes`` is a memory hog #1350

Open oesteban opened 2 months ago

oesteban commented 2 months ago

This node in the workflow https://github.com/nipreps/mriqc/blob/d5b13cb56b6de1493ad91979f0e1e48ebb6708db/mriqc/workflows/functional/output.py#L95-L100 often causes memory errors.

In a quick review, I believe casting here https://github.com/nipreps/mriqc/blob/d5b13cb56b6de1493ad91979f0e1e48ebb6708db/mriqc/interfaces/functional.py#L229 to float32 would be safe and have zero effects on the interface performance.