First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version | asked 2021-08-10 19:35:58 -0500 Anonymous |
Hi all,
I have some issue to plot out file with matplotlib. Here is the code i've used.
outfile=tk.askopenfilename(title="Select a .out file",filetypes=(("PSS/E outfile",".out"),("all files",".*")))
chnfobj = dyntools.CHNF(outfile)
shorttitle, chaniddict, chandatadict = chnfobj.getdata()
time = chandata_dict ['time']
f = chandata_dict['freq']
Here is the error Traceback (most recent call last): File "C:\Users\dyntoolstest.py", line 34, in <module> f = chandata_dict['freq'] KeyError: 'freq'
What should i put in [] of f ?
Thank you in advance.
2 | No.2 Revision |
Hi all,
I have some issue to plot out file with matplotlib. Here is the code i've used.
outfile=tk.askopenfilename(title="Select a .out file",filetypes=(("PSS/E chnfobj = dyntools.CHNF(outfile)
shorttitle, chaniddict, chandatadict = chnfobj.getdata()
Here is the error
error
Traceback (most recent call last):
File "C:\Users\dyntoolstest.py", line 34, in <module>
f = chandata_dict['freq']
KeyError: 'freq''freq'
What should i put in [] of f ?
Thank you in advance.