First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

I try to read the .out file in excel but it gives me the following typeerror: an integer is required

asked Mar 8 '3

Juan gravatar image

updated Mar 8 '3

import pandas as pd

import dyntools

archivoout="OutBDDV33.out"

datosexcel = dyntools.CHNF(archivoout)

datos_excel.xlsout(channels='', show=False)

Worbook1 = 'Out_BDDV33.out.xlsx'

df=pd.read_excel(Worbook1 )

print(df.head())

1 answer

Sort by » oldest newest most voted
0

answered Mar 9 '3

jconto gravatar image

Added parameter "outvrsn=0" to "CHNF" call. Now the code works ok in v.33, v.34 and v.35:

import pandas as pd
import psse35           # update for v.33, 34, 35
import dyntools

archivoout="IEEE39_flat.out"
datos_excel = dyntools.CHNF(archivoout,outvrsn=0)
datos_excel.xlsout(channels='', show=False)         #export ALL channels!
Worbook1 = 'IEEE39_flat.xlsx'
df=pd.read_excel(Worbook1)
print(df.head())
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Mar 8 '3

Seen: 173 times

Last updated: Mar 08 '23