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

Change sensitivity scripts to a more batch job -friendly form, as in into functions #159

Closed SeSodesa closed 1 year ago

SeSodesa commented 1 year ago

What the title says. Argument validation was also added. This is a squashed compilation of multiple commits. Individual commit messages can be seen below.


Started cleaning up the functions that will be used to test for the sensitivity of inversion in the realistic head model case

Rename mne_sensitivity_fn to inverse_sensitivity_fn

Also allow passing in Dipole Scan as a possible inverse method

zef_sensitivity_map_dipoleScan: pass a function pointer to max diff function instead of a name of the function

inverse_sensitivity_fn: add input flag use_gpu

zef_sensitivity_map_dipoleScan: added argument validation functions

zef_sensitivity_map_mne: add missing standard deviation computations

Moved inverse_sensitivity_fn to the same location with the functions it uses

I wonder who moved the other functions in the first place?

Move averaging to the main inverse_sensitivity_fn

Added documentation to inverse_sensitivity_fn

Rename main function inside zef_sensitivity_map_dipoleScan to match the file name

zef_rec_max_diff: add some intermediate variable assignments for readability