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

Port recommender #164

Merged
merged 28 commits into from
Mar 10, 2023
Merged

Port recommender #164

merged 28 commits into from
Mar 10, 2023

Conversation

liamhuber
Copy link
Member

@liamhuber liamhuber commented Jan 27, 2023

When you select an input (output) port on the graph, ontologically-valid output (input) ports are highlighted white. Highlighting is cleared when you deselect the port. Under the hood, the get_downstream_conditions get_downstream_requirements port method is used to make sure that the suggestions obey transitive conditions in both I/O and O/I cases.

The underlying code is nasty, with nested loops and a canvas redraw call. But at least on my small test graph (5 nodes) it is blazing fast still, so let's kick the can down the road on optimization.

Super simple, highlighting always takes precedence and it's just colour white
Suuuuper ugly code. I was worried the nested loop and redraw would be slow, but at least testing on a small (5-node) graph, it's blazing fast still. Will need to refactor and improve the algo later, but this does the job.
@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch pyiron/ironflow/port_recommender

@liamhuber liamhuber changed the base branch from main to node_recommender January 27, 2023 18:22
@liamhuber liamhuber added the format_black Invoke black formatting CI label Jan 27, 2023
@stale
Copy link

stale bot commented Feb 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 18, 2023
@stale stale bot removed the stale label Feb 18, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@liamhuber liamhuber marked this pull request as ready for review March 10, 2023 19:22
@liamhuber liamhuber merged commit e5a97dd into node_recommender Mar 10, 2023
@liamhuber liamhuber deleted the port_recommender branch March 10, 2023 19:23
@liamhuber liamhuber mentioned this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format_black Invoke black formatting CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants