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

Ask Your Question
1

Reading .out file with Excel

asked Apr 3 '13

JervisW gravatar image

updated Apr 3 '13

(I saw this posted as an answer so have moved it here as it's own question)

Hello,

I do you read the .out file in Excel? Mine is just a bunch of garbage.

Best Regards,

Madjê (@Madje)

2 answers

Sort by » oldest newest most voted
4

answered Apr 3 '13

JervisW gravatar image

https://psspy.org/psse-help-forum/que... This question is related

It says that Excel cannot open the .out file. You must export the data to excel using excelpy. And read the data from the .out file using the dyntools module.

import excelpy
import dyntools

# example getting some info from .out file
outfile = dyntools.CHNF('dynamic-results.out')
short_title, chanid_dict, chandata_dict = outfile.get_data()

# example writing to excel
xl = excelpy.workbook(xlsfile='report-file.xlsx', mode='w')
xl.set_range(1, 'a', [short_title])
xl.save()
xl.close()
link

Comments

@Madje this is for you

jtrain gravatar imagejtrain (Apr 3 '13)
0

answered Apr 4 '13

Madje gravatar image

Thanks you very much, this helped me a lot.

Best Regards,

Madjê

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: Apr 3 '13

Seen: 3,712 times

Last updated: Apr 04 '13