Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcrvz opened this issue Jan 28, 2025 · 0 comments
Labels
0-needs-review For all new issues

Comments

@jcrvz
Copy link

jcrvz commented Jan 28, 2025

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

@github-actions github-actions bot added the 0-needs-review For all new issues label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-review For all new issues
Projects
None yet
Development

No branches or pull requests

1 participant