First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Try doing it with python's with statement:
with dyntools.CHNF(outFile) as chnfobj:
# Do your operations here
# End of your script
Upon completion, the with
statement will force the API's exit()
method upon completion, if there is one.
I'm not 100% sure how thorough the PSS/e API is with enter()
and exit()
methods.
The API documentation does not list any exit() method so it also might be worth sending a support request to Siemens so they include one in the next version.