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

Add a convenience function to get a GraphBuilder instance directly from a lsl.Model #87

Open
jobrachem opened this issue Sep 6, 2023 · 0 comments
Labels
comp:model This issue is related to the model module

Comments

@jobrachem
Copy link
Contributor

Currently, if you want to get a GraphBuilder from a model, the process looks like this:

  1. Extract the nodes and vars from the model via lsl.Model.copy_nodes_and_vars()
  2. Initializie a GraphBuilder
  3. Add the nodes and vars to the GraphBuilder via .add() In this step, you need some Python experience about how to get the output of lsl.Model.copy_nodes_and_vars() into the necessary format accepted by .add()

While this is not impossible, I feel like it would be much more user-friendly to provide a method that enables users to directly obtain a fully filled GraphBuilder instance directly from a model.

@jobrachem jobrachem added the comp:model This issue is related to the model module label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model This issue is related to the model module
Projects
None yet
Development

No branches or pull requests

1 participant