Can't delete added iEEG electrode models

If one adds a new SEEG electrode model (by clicking the + on the “Electrode configuration” subpanel), it is actually impossible to delete it later. One gets the non-grammatical message: “This is a Brainstorm default electrode model and cannot deleted.”

This is because of 2 bugs in panel_ieeg.m:

  1. default is misspelled at line 1876, which causes GetElectrodeModels to always return all defined electrode models, not just the defaults
  2. The wrong field is used at line 2162, presumably Name should be used and not Model. When Model is used, empty strings are compared at that line, so it always evaluates to true.

When I correct the 2 issues above I am able to delete newly added electrode types.

Hi @aarongeller,

Thank you for the heads-up, this is now corrected in Commit c3e794f

Confirming the bug fix worked.

Thanks for your quick response!