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

Composed block feature with solved nested issue #325

Merged
merged 11 commits into from
Sep 10, 2024

Conversation

BkPankaj
Copy link
Collaborator

@BkPankaj BkPankaj commented Jul 30, 2024

Changes Made

  • Composed Block Feature
  1. Added an option in the menu bar for building the composed block.
  2. After clicking the composed block option, a dialog box appears from which all available global inputs and outputs can be selected.
  3. After selecting the global inputs and outputs, the .vc3 file is generated and saved in the downloads folder with the respective global input and output links.
  4. The composed block also supports nested blocks in the .vc3 file.
  • Nested issue
  1. Added nested processing on the backend.
  2. Modified the existing single code block dependency code to support multi-level dependencies with multiple code blocks.
  3. All nested and zero-level block Python scripts are placed in the modules directory.
  4. Added processing for wires, including filtering and mapping to the required blocks.
  5. Resolved the parameters issue in backend processing.

Related Issues

Fixes: #324 #215

Screenshots

Block Dialog box with all available global inputs and outputs

Level1 Sample Circuit:

Level2 Inside test_second_block Block (nested level 1):

Level3 Inside test_first_block Block (nested level 2):

Before modification of nested issue - data.json:

After modification of nested issue - data.json:

@BkPankaj BkPankaj added the v3.6 label Jul 30, 2024
@BkPankaj BkPankaj changed the title Composed block feature Composed block feature with solved nested issue Aug 10, 2024
@BkPankaj
Copy link
Collaborator Author

Hello @toshan-luktuke @jmplaza sir,
The PR is ready for merge with resolved issues for multiple instances in both the collection package block and the 'Add as Block' package block, along with parameter issues and other related issues. Please review and merge it.

@toshan-luktuke toshan-luktuke merged commit fe3026b into master Sep 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composed Block feature for easily building the blocks
2 participants