Ask Your Question
0

module 'psspy' has no attribute 'aswshntbusint'

asked 2023-06-16 03:22:35 -0500

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.

edit retag flag offensive close merge delete

Comments

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

Alex P gravatar imageAlex P ( 2023-06-16 10:15:29 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-06-16 12:01:48 -0500

jconto gravatar image

Misspell error: Correct function name: aswshuntbusint

edit flag offensive delete link more

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 ( 2023-06-17 03:53:43 -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: 2023-06-16 03:22:35 -0500

Seen: 126 times

Last updated: Jun 16 '23