Answer
Sep 28, 2021 - 02:32 PM
My friend helped me to figure out. my code without error is below.
import mhi.pscad.utilities.file as fl direct=r"C:\Users\pmak001\Box\Mehmet_Akdogan_Fall_Internship_2021\PSCAD_intern\
PSCAD_Test_Circuits\Test_circuit.gf46" out_file="Test_circuit_01.out" csv="file.csv" fl.File.convert_out_to_csv(direct, out_file, csv)
however the code only convert one out.file to csv file.
If your project has more than 10 variables, another .out file will be created, in order to fit them all in one csv file solutioin is below.
GitHub - LuisArthurNH/ImPSCAD: This package contains a module to read and process the result files from PSCAD simulations with python.
import mhi.pscad.utilities.file as fl direct=r"C:\Users\pmak001\Box\Mehmet_Akdogan_Fall_Internship_2021\PSCAD_intern\
PSCAD_Test_Circuits\Test_circuit.gf46" out_file="Test_circuit_01.out" csv="file.csv" fl.File.convert_out_to_csv(direct, out_file, csv)
however the code only convert one out.file to csv file.
If your project has more than 10 variables, another .out file will be created, in order to fit them all in one csv file solutioin is below.
GitHub - LuisArthurNH/ImPSCAD: This package contains a module to read and process the result files from PSCAD simulations with python.
Add New Comment