Ask Your Question
0

Python Script report_output

asked 2025-07-13 05:44:19 -0500

SamehKozman gravatar image

updated 2025-07-13 06:22:18 -0500

Concerning this Python script: psspy.report_output(2,r"""results.csv""",[0,0])

What preparations to the Excel file should I do prior using it? Because when I'm using the script the output file "results.csv" is empty (0 kB). I need that it contains the power flow outputs e.g. voltages on all buses.

Here is the complete code I wrote: psspy.case(r"""savnw""") psspy.fnsl([0,0,0,1,1,0,0,0]) psspy.report_output(2,r"""results.csv""",[0,0])

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2025-07-14 01:03:22 -0500

perolofl gravatar image

It will only redirect the output to a file. Use a reporting activity like LIST to make a report with bus data.

edit flag offensive delete link more

Comments

Thank you so much for your valuable answer.

SamehKozman gravatar imageSamehKozman ( 2025-08-25 16:05:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2025-07-13 05:44:19 -0500

Seen: 146 times

Last updated: Jul 14