Skip to content

Is it possible to change the array length of parameters in eui.ParamEditor? #311

@dbirman

Description

@dbirman

Describe the bug
It appears to not be possible to change the length of a parameter in the GUI.

To Reproduce
Define a parameter in a signals experiment either as a single value or an array:

p.example1 = 1;
p.example3 = [1, 2, 3]';

Using the mc GUI or eui.SignalsTest try to change the length of either parameter.

Setting p.example1 to [1,2] will cause this error:

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 2-by-1.

Error in eui.ParamEditor/update (line 231)
           obj.Parameters.Struct.(name)(:,row) = newValue;

Setting p.example3 to [1,2] will cause the same error but with a different assignment size.

This appears to be happening because of the (:,row) code at line 231, which forces the matrix to stay the same shape. Removing that extra code allows parameters to change length, but it's unclear if that might be breaking something else up/down stream from here.

p.s. (:,row) is flipped, that's a column?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions