sampsapursiainen / zeffiro_interface

Interface for using finite elements in inverse problems with complex domains
GNU General Public License v3.0
24 stars 15 forks source link

Check sign of lead field in x-, y- and z-directions separately #103

Closed SeSodesa closed 2 years ago

SeSodesa commented 2 years ago

Also, the sign check was moved to the end of lead_field_matrix from lead_field_eeg_fem, because the source interpolation after at the end of lead_field_matrix caused yet another sign flip.

The individual commit messages of this squashed set of commits can be found below. Don't forget to see the attached diff as well before accepting the pull request.


Moved EEG lead field sign flip(s) to the end of lead_field_matrix from lead_field_eeg_fem

zef_lead_field_sign: ensure the test electrodes are in the direction the test source dipoles point to

zef_lead_field_sign: improved documentation