Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

GroupTree

Kristian Reed edited this page Oct 4, 2017 · 1 revision

Expose GroupTree object to Eclipse state

Example 1:

for group in es.schedule.groups(timestep = 2):
    for child in group.children:
        print('%s:    %s' % (group.name, child.name))

Example 2:

group = es.schedule.group(timestep = 2 )['PROD']
print(group.parent.name)

Example 3:

group = es.schedule.group()['MANI-B1']
parent_group=group.parent
print(parent_group.timestep)
print(parent_group.name)

Default value of timestep in example 3 is timestep = 0 when not spesified

Clone this wiki locally