Ask Your Question

dyntools.CHNF() causes python to crash. Help!

asked 2020-01-06 01:10:44 -0500

bikiran1991 gravatar image

I am running a python script to do dynamic contingency analysis. The command dyntools.CHNF() (to get the output channel values) causes python to crash when there are some NaN values. There is no error message, python just crashes.

Has anyone else encountered this behavior and found any ways to either skip over this issue or fix it? Ideally, i want to skip to the next simulation when this happens.

I couldnt find the command 'dyntools.CHNF()' in the PSSE API module as well. I was looking for ways to skip getting the output data if there were NaN values in the output channels.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-01-07 00:16:29 -0500

perolofl gravatar image

Test to use try statement in order to avoid Python crash.

For documentation:

import dyntools
edit flag offensive delete link more


tried that already. since python crashes, this doesn't work. checked the dyntools help. There is nothing helpful in the options for dyntools.CHNF. To fix this crash, i need to know if the output channels contain any NaN characters, before running the command: dyntools.CHNF().

bikiran1991 gravatar imagebikiran1991 ( 2020-01-07 03:21:13 -0500 )edit

I assume PSS/E will crash if you open the corrupt out-file inside PSS/E.

perolofl gravatar imageperolofl ( 2020-01-08 01:32:58 -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


Asked: 2020-01-06 01:10:44 -0500

Seen: 49 times

Last updated: Jan 07