I am studying students in the power system and I want to use python in PSS/E program. I can use python in PSS/E program to run short-circuit current data. But I don't know how to use python to save short circuit current data to CSV. l can create one CSV file now , but I don't know how to write data to CSV.
I use psse ver34 & python 2.7.
I have this small code:
import os, math, time
sqrt3 = math.sqrt(3.0)
sbase = 100.0 # MVA
str_time = time.strftime("%Y%m%d_%H%M%S_", time.localtime())
fnamout = str_time + 'short_circuit_in_line_slider.csv'
fnamout = os.path.join(os.getcwd(),fnamout)
foutobj = open(fnamout,'w')