First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
answered 2017-02-23 10:52:48 -0600
If you add the following at the top of your code it should work correctly.
_i, _f = psspy.getbatdefaults()