First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Use module dyntools to get the channel values from a .out file.
import dyntools
outfile = 'TripGen102.out'
chnfobj = dyntools.CHNF('TripGen102.out')
sh_ttl, ch_id, ch_data = chnfobj.get_data()
# extract list with time
t = ch_data.get('time')
# extract list with values for channel ch
v = ch_data.get(ch)
chid is a dictionary with channel id's and chdata is a dictionary with time and all channel values