Ask Your Question
0

PSSE35 psspy.pssehalt_2()

asked 2025-01-01 22:25:05 -0600

trapezoid gravatar image

updated 2025-01-01 22:27:32 -0600

I have a Python automation tool that has options to print out several different types of reports.

It works well with PSSE34, but in PSSE35, it crashes when the psspy.pssehalt2() function is called and psseinit() is called after. I tried commenting psspy.pssehalt2() out which in some cases is ok, but it appears that calling pssehalt_2() is still necessary because without it, psseinit() crashes routinely and I have trouble initializing simulations.

It seems to me that psspy.pssehalt_2() is bugged.

Does anyone know a workaround for this? PSSE version 35.6, Python 3.7 64-bit.

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2025-01-03 08:18:58 -0600

jconto gravatar image

From the API manual: "1.221. PSSEHALT_2 Use this API to end the operation of PSSE, closes all associated files and returns to the calling application"

After pssehalt is called, there is no PSSe in memory. So for the next run, you need to star over (import PSSe35 -> import psspy -> import psseinit)

Can you can post some code to see the pssehalt behavior?

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: 2025-01-01 22:25:05 -0600

Seen: 40 times

Last updated: yesterday