Ask Your Question

klbe's profile - activity

2023-07-20 16:38:32 -0500 received badge  Famous Question (source)
2023-07-06 03:14:56 -0500 received badge  Notable Question (source)
2023-06-19 12:15:25 -0500 received badge  Popular Question (source)
2023-06-17 03:53:43 -0500 commented answer module 'psspy' has no attribute 'aswshntbusint'

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.

2023-06-16 03:22:35 -0500 asked a question module 'psspy' has no attribute 'aswshntbusint'

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.

2022-06-23 07:28:48 -0500 received badge  Enthusiast
2022-06-17 05:33:43 -0500 answered a question Automated sld to pdf printing

Great suggestions here! By running the script from a opened case file in PSSE, the default location for the printer is the current working folder for the case file.

I used:

psspy.printdiagfile(r"""Microsoft Print to PDF""", copies, orientation)

The name of the pdf-file is found by adding ".pdf" to the name of the sld-file. I used the following to rename it:

os.rename(oldPDFname, newPDFname)

This was performed in v35.