giovannipizzi / aiida-node-shell

Proof of concept of a way to easily browse AiiDA nodes through an interactive, customisable shell with tab completion
MIT License
6 stars 1 forks source link

Add a command `group_ls`/`gls` to list groups #5

Open giovannipizzi opened 4 years ago

giovannipizzi commented 4 years ago

Or, more precisely, group paths using the recent GroupPath features introduced in AiiDA

giovannipizzi commented 4 years ago

Some quick python API pointers that will be useful during implementation

list(GroupPath().children)
list(GroupPath('a/b').children)
list(GroupPath('a/d').children)
GroupPath('a/d').get_group()
#list(GroupPath('a/b').walk_nodes())

g.get_group()
g.get_group().nodes
len(g.get_group().nodes)