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

How do we access spinedb_api groups in SpineInterface? #43

Open
spine-o-bot opened this issue Feb 7, 2021 · 3 comments
Open

How do we access spinedb_api groups in SpineInterface? #43

spine-o-bot opened this issue Feb 7, 2021 · 3 comments
Assignees

Comments

@spine-o-bot
Copy link

In GitLab by @manuelma on Jun 11, 2020, 22:01

Now spinedb_api almost has groups, I think we can discuss how do we wanna use them in SpineInterface. I'm not sure what would be nice. Maybe this, say I have a group called 'node_with_state' in the 'node' class, then calling node_with_state() after using_spinedb returns an Array of node Objects in that group. So they would be pretty much like ObjectClasses in this respect.

But I imagine we might also want an API to get all the groups of a class so we can iterate through them, say, groups(unit) returns an Array of groups of class 'unit'.

Any other ideas? @DillonJ @Tasqu @manuelma @jkiviluo @nnhjy

@spine-o-bot
Copy link
Author

In GitLab by @manuelma on Jun 11, 2020, 22:02

changed the description

1 similar comment
@spine-o-bot
Copy link
Author

In GitLab by @manuelma on Jun 11, 2020, 22:02

changed the description

@spine-o-bot
Copy link
Author

In GitLab by @manuelma on Jun 11, 2020, 22:04

changed the description

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

No branches or pull requests

2 participants