Ask Your Question
0

There are some API commands which can be identified inside Psse GUi but can not be identified using python IDLE

asked May 26 '1

snapshot gravatar image

1.Inside PSSE GUI

" psspy.machine_chng_2(12,r"""1""",[_i,_i,_i,_i,_i,_i],[ 80.0,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f])" can be effective
  1. Outside Psse, using Python IDLE It shows that " NameError: name '_i' is not defined"

How does that happen? Maybe the "i" and "f" should all be changed into specific figures ?

2 answers

Sort by » oldest newest most voted
0

answered Sep 8 '2

xgreen gravatar image

or add this:

from psspy import _i, _f

link

Comments

Thanks, very nice solution!

perolofl gravatar imageperolofl (Sep 9 '2)
0

answered May 26 '1

perolofl gravatar image

Use this in your script:

import psspy
_i = psspy.getdefaultint()
_f = psspy.getdefaultreal()
_s = psspy.getdefaultchar()
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

2 followers

Stats

Asked: May 26 '1

Seen: 454 times

Last updated: Sep 08 '22