Skip to content

Signal names do not propagate through algebraic scalar/matrix operations #902

@murrayrm

Description

@murrayrm

When a system with named signals is combined with a constant system represented by a scalar or matrix, the signal names are lost. For example

ctrl = ct.rss(2, 1, 1, input='e', output='u') * 2

would be expected (by me) to have input 'e' and output 'u'. But what you get instead is

 <LinearICSystem:sys[4]:['u[0]']->['y[0]']>

This is happening because scaling by a factor of 2 is internally handled by converting the number `2' into an input/output system then creating a new system that is the series composition of the two systems. But in doing that, you lose the signal names.

There is a similar problem using the series function, which also loses signal names (I would expect the input and output signal names to be preserved).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions