Ask Your Question
-1

python in psse gui

asked 2020-02-11 12:01:33 -0500

vikram gravatar image

updated 2020-02-11 12:02:02 -0500

I know how to connect to PSSE through a python script. But I want to learn how to run python commands from PSSE GUI through their Command Line Interface.

For example, if I select "Python" in command line input, and give the command as ierr, cmpval=psspy.busdat(busnumber, 'BASE'), I was expecting to see a base value of that result. Instead, I get nothing in the Progress bar. Am I doing it wrong?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-02-11 15:11:11 -0500

perolofl gravatar image

The command

ierr, cmpval=psspy.busdat(busnumber, 'BASE')

just stores the result in variables ierr and cmpval. Nothing is printed. As drsgao said, you have to print the result to see it.

edit flag offensive delete link more
0

answered 2020-02-11 12:23:46 -0500

drsgao gravatar image

You need to use the "print()" function, or something else that outputs the result onto the console.

For example:

print(psspy.busdat(busnumber, 'BASE'))

Then, you should see the tuple.

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

1 follower

Stats

Asked: 2020-02-11 12:01:33 -0500

Seen: 1,071 times

Last updated: Feb 11 '20