DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store the row from a particular group into a list?

Solved!
Go to solution

In DIAdem how can we extract the first row from a particular group and store it into a list in python.

In the below snapshot how can we extract the first row from group Room temperatures & store it in a list?

joshilpa_0-1673633265964.png

 

0 Kudos
Message 1 of 3
(1,052 Views)
Solution
Accepted by topic author ebenellis

Hi joshilpa,

 

my_list = []
oGroupChns = dd.Data.Root.ChannelGroups("Room temperatures").Channels
for oChn in oGroupChns:
    my_list.append(oChn[1])
print(my_list)

 

Greetings

Walter

Message 2 of 3
(996 Views)

Thank you Walter, this solution works perfectly!

0 Kudos
Message 3 of 3
(989 Views)