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

Ask Your Question
0

module 'psspy' has no attribute 'aswshntbusint'

asked Jun 16 '3

klbe gravatar image

When I try to use the

ierr, carray = aswshntbuschar(sid, flag, string)

that was introduced with the release of 35.0.0, I get the following error message:

ierr, res = psspy.aswshntbusint(sid, 5, "NUMBER")

Traceback (most recent call last):
File "< string>", line 2, in < module >

AttributeError: module 'psspy' has no attribute 'aswshntbusint'

Python Exception raised!

PS: The sid subsystem has been defined and used successfully with other functions like aloadchar before running this function.

I run this from within the PSSE v35.3.0 prompt. I run a PSSE installation that has previously been updated from v33, could my psspy-module be outdated from the PSSE version? I hope anyone has experience with what might be wrong and how to fix it.

Comments

You can check which version of PSS/E (psspy) is being loaded by running:
psspy.psseversion()

Alex P gravatar imageAlex P (Jun 16 '3)

1 answer

Sort by » oldest newest most voted
0

answered Jun 16 '3

jconto gravatar image

Misspell error: Correct function name: aswshuntbusint

link

Comments

Ahh, that explains it! I copy-pasted from the Python command syntax from the API documentation to make sure it was correct. In my version of the documentation, there is no 'u' in 'shunt' in the Python command syntax, only in the heading. I hope this has been corrected in later versions of the docs.

klbe gravatar imageklbe (Jun 17 '3)

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: Jun 16 '3

Seen: 176 times

Last updated: Jun 16 '23