Skip to content

Warning option for sensors in neck in file: _make_forward.py #13272

Open
@wadelab

Description

@wadelab

Describe the new feature or enhancement

We are using an OPM-MEG system where the sensors are very close to the skull. Our MRI data are acquired when the subject is in a slightly different posture and so we sometimes end up with the neck sensors mapping >within< the surface of the head even though they were (obviously) outside during the MEG data acquisition. Currently _make_forward.py stops when it discovers this (in _prepare_for_forward). We would like the option to throw a warning (not an error) at this point and proceed. We think this is okay because the sensors are not inside the skull, just the neck fat. Currently we are commenting out the lines around line 573 in this file in our local copy...

Describe your proposed implementation

Perhaps a flag like USE_PERMISSIVE_POSITION_CHECK when calling _make_forward? If it's set then just warn, don't error?

Describe possible alternatives

I guess we could move the sensors out normal to the surface until they are outside the scalp? This feels like a worse solution.

Additional context

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions