sampsapursiainen / zeffiro_interface

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

Error when selecting the last script in Mesh Tool #204

Open mshavliuk opened 1 year ago

mshavliuk commented 1 year ago

Description

When I select the zef_tes_make_all; script in Mesh tool, an error occurs.

Steps to reproduce

  1. Open ZI, load a multicompartment head project
  2. Select the zef_tes_make_all; script in Mesh tool

See the error:

Index in position 1 exceeds array bounds.

Error in zef_forward_simulation_table_selection (line 4)
forward_simulation_column_selected = eventdata.Indices(1,2);

Error using matlab.ui.internal.controller.uitable.WebMWTableController/handleEvent (line 747)
Error while evaluating Table CellSelectionCallback.

When the last script selected second time, it usually does not provide similar errors. Although, after a while selecting the last script throws an error again, see the screencast below. There's no clear sequence of actions that make it happen.

Expected behavior

Errors do not occur

Screenshots

https://user-images.githubusercontent.com/6589665/236792784-9bceb9f8-d8c3-4bd1-b874-a061f9810534.mp4

Context

Name Value
Version 6cb2537c zef_import_parcellation_colortable: load fields from color table file order-agnostically
OS MacOS
Shell N/A