You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
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 callingnode_with_state()
afterusing_spinedb
returns anArray
of nodeObject
s in that group. So they would be pretty much likeObjectClass
es 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 anArray
of groups of class 'unit'.Any other ideas? @DillonJ @Tasqu @manuelma @jkiviluo @nnhjy
The text was updated successfully, but these errors were encountered: