NaN and Python Crashing
This is not quite a question, but more of a PSA that might help those who have had issues when encountering a float('nan')
and having your script crash.
Add the following line after psspy.psseinit()
:
psspy.set_NaN_python()