Skip to content

Question: How to Implement an InPort That Concatenates Signals from Multiple OutPorts? #908

@jcrvz

Description

@jcrvz

Discussed in #907

Originally posted by jcrvz January 28, 2025
Greetings!

I hope this message finds you well.

I'm implementing an InPort that receives signals from multiple OutPorts and concatenates these inputs instead of the default summation behaviour. However, I couldn't find detailed information or examples in the documentation or on the web.

I came across the tutorial Connect Processes and Ports, but the section title ("Connect multiple InPorts from a single OutPort") seems misleading or oversimplifying this topic. The tutorial doesn't provide information on how to override or customise the behaviour of ports for this use case.

Could you provide guidance or examples on configuring an InPort to concatenate incoming signals along a specified axis (e.g., using ConcatPort or another approach)? Or does this require overriding methods in the PyProcessModel (e.g., recv)? (I've tried something in this direction, and it does not work as expected) What are the best practices for handling multiple incoming signals?

I'd greatly appreciate any insights or references to additional resources to help with this!

Kind regards,
Jorge Cruz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions