Ask Your Question
0

Sending ACCC_Single_Run_Report_4 report in output bar to file using Python

asked 2018-07-03 07:42:42 -0500

paulTheEngineer gravatar image

Hey, When you manually run ACCC using the GUI and press Go a report is generated in the output bar with the tab title "ACCCSingleRunReport4". I was trying to use Python to send this exact report to a file but could not find the right command. There are some other ACCC commands that generate other reports but not the one generated in the output bar. Would like to know what command/s is/are used to do this, Thanks, Paul

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-07-13 14:53:11 -0500

TheBard gravatar image

updated 2018-07-13 14:53:41 -0500

I'll just put my answer in a separate message here.

psspy.report_output(2,"report4.txt",[0,0])

Try that, but put it before the report is generated (psspy.acccsinglerunreport4(....).

It looks like you have to tell it where to output before running the report. It took me awhile to see that.

If you want to do a second file with a second report then just do psspy.report_output(2,"report5.txt",[0,0]) and run the next report.

edit flag offensive delete link more
0

answered 2018-07-13 03:27:32 -0500

paulTheEngineer gravatar image

Thanks for the anwer.

First of all is there any way to programmatically change the I/O Control above. When I manually change them I can change the stream to a particular file.

Unfortunately when I try to use: ierr = psspy.report_output(2, outputFile, [0,1]) (I've also tried [1,1] and [2,1]) it's still not changing the output to go to outputFile.

edit flag offensive delete link more

Comments

psspy.report_output(2,"report4.txt",[0,0]) Try that, but put it before the report is generated (psspy.accc_single_run_report_4). I think you have to tell it where to output before running the report. It took me awhile to see that.

TheBard gravatar imageTheBard ( 2018-07-13 12:44:50 -0500 )edit
0

answered 2018-07-04 02:44:41 -0500

perolofl gravatar image

Use activity OPEN (I/O Control - Direct Report output) to change the output device to a file. Record the change of output device in a Python script and you will see that API report_output is used in Python.

edit flag offensive delete link more

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

Stats

Asked: 2018-07-03 07:42:42 -0500

Seen: 388 times

Last updated: Jul 13 '18