ibs-lab / cedalion

fNIRS analysis toolbox
MIT License
16 stars 6 forks source link

Small bugfix for runing pmcx #32

Closed harmening closed 1 week ago

harmening commented 2 weeks ago

Many pmcx simulations currently fail because the optodes are aligned the scalp surface, which is smooth, but its vertices often not inside a scalp voxel (pmcx requirement). This little fix re-aligns the optodes before calling pmcx to their closest scalp voxel.