SciDataTool icon indicating copy to clipboard operation
SciDataTool copied to clipboard

[NF] Write data to .csv file

Open RaphaelPile opened this issue 4 years ago • 5 comments

The idea of this new feature would be to easily write data into csv files with names in column headers, and data on the rows. It is very practical to integrate in Latex, but it does not prevent you from doing some small additional calculations with software such OpenCalc or Microsoft Excel. Of course, the idea could be extended to other type of files.

RaphaelPile avatar Feb 26 '21 08:02 RaphaelPile

Hello Raphaël, I was thinking about a winding matrix export (in pyleecan). So I may utilize this feature. Do you it will be possible to write such multi dimensional data in a senseful way to a csv too?

SebGue avatar Feb 26 '21 08:02 SebGue

Hello Seb,

I was mainly thinking about usual 2D plot (a function of time, frequency etc.). 3D plot seems possible by using columns. I don't know if it will be relevant for higher dimensions. Maybe writing several csv files for different variable (on for each phase etc.).

Is it what you were thinking of ?

RaphaelPile avatar Feb 26 '21 08:02 RaphaelPile

We could use sheets for a 3rd dimension.

helene-t avatar Feb 26 '21 08:02 helene-t

Thanks for your ideas. I would prefer a one file solution. But I don't want you to get headache because of this :-) So I may implement a specific solution for windings only.

SebGue avatar Feb 26 '21 08:02 SebGue

This feature has been started in commit 433f8e1543067785ab0866e1fba63863ca33de6b. I will try to find some time to automatically write Latex/Tikz figure based on plot_2D_data before closing this issue.

RaphaelPile avatar Mar 25 '21 16:03 RaphaelPile