Skip to content

Derive the ports of blocks whose ports depend on their parameters - #361

Merged
milanofthe merged 2 commits into
mainfrom
feature/derived-ports
Nov 18, 2026
Merged

milanofthe merged 2 commits into
mainfrom
feature/derived-ports

Conversation

@milanofthe

Copy link
Copy Markdown
Member
  • Block types report portParameters (pathsim 0.32: port_parameters) and start with the ports of the default parameters (Splitter: out_0).
  • When such a parameter is committed, the block is built in Python with the parameters of the node, evaluated in the model's code context, and its ports replace the node's. Ports keep display name and color by key, connections follow their port, connections to ports that no longer exist are removed.
  • These ports are derived: no add or remove buttons.
  • blockImportPath replaces three copies of the import path lookup.

Part of #356

@milanofthe
milanofthe merged commit ace9ba7 into main Nov 18, 2026
4 checks passed
@milanofthe
milanofthe deleted the feature/derived-ports branch November 18, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant