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

Decouple draw and status #177

Merged
merged 12 commits into from
Apr 4, 2023
Merged

Decouple draw and status #177

merged 12 commits into from
Apr 4, 2023

Conversation

liamhuber
Copy link
Member

@liamhuber liamhuber commented Apr 3, 2023

Changes to dtype and otype checks so that they occur at value updates and connection changes, respectively, instead of during each draw() call for the graph canvas(!!!!). Adding new nodes can still be quite slow, and creating connections can drag a little (since the otype check is still a little expensive), but now moving nodes around the graph window is new pretty comfortable.

I had to lean on the port update function for part of this, and am currently fighting a side effect where we get into the node output generation even when the node readiness should not allow this.

On loading a graph, we're still missing a final node update, e.g. for Lammps where the engine no longer gets populated. This was just an issue with the fact that we used to rely on a live recalculation of the structure dtype readiness, but now it was out-of-date; I split the if-clause and added it back in manually.

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

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

@liamhuber liamhuber added the format_black Invoke black formatting CI label Apr 4, 2023
@liamhuber liamhuber merged commit 7553b2d into main Apr 4, 2023
@liamhuber liamhuber deleted the decouple_draw_and_status branch April 4, 2023 22:00
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