Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to get pure data without titles in .txt out files

Hi, everyone!

I used the following code to output the results of dynamic simulations:

output_obj = dyntools.CHNF('D:\python_test.out')
output_obj.txtout(channels=1)

But the output txt file looks like this:

D:\IEEE 9\pythontest1.out IEEE 9 BUS CASE - 3G - 3L 1
Time(s) FREQ 1 [BUS1 1 6.500] -0.0166667 0 -0.00833333 2.70645E-11 0 1.99895E-11 0 1.99895E-11 0.00833333 2.41407E-11 0.0166667 -0.000255582

I have to delete the title manually and then deal with the data. I wondered if there is a method which can output pure data without title. So I can deal with the data directly in python. Any other better methods to output the results of dynamic simulation would be great as well.

I would really appreciate your help!

Thanks a lot!

click to hide/show revision 2
No.2 Revision

how to get pure data without titles in .txt out files

Hi, everyone!

I used the following code to output the results of dynamic simulations:

output_obj = dyntools.CHNF('D:\python_test.out')
output_obj.txtout(channels=1)

But the output txt file looks like this:

D:\IEEE 9\pythontest1.out
9\python_test_1.out
IEEE 9 BUS CASE - 3G - 3L
                     1 
Time(s) FREQ 1 [BUS1 1 6.500] -0.0166667 0 -0.00833333 2.70645E-11 0 1.99895E-11 0 1.99895E-11 0.00833333 2.41407E-11 0.0166667 -0.000255582

-0.000255582

I have to delete the title manually and then deal with the data. I wondered if there is a method which can output pure data without title. So I can deal with the data directly in python. Any other better methods to output the results of dynamic simulation would be great as well.

I would really appreciate your help!

Thanks a lot!