Suggestions for passing large table between Python and C# -
I have a C # application that needs to be run several thousand times currently at the beginning of the run for this reference. A large table precomputes Since these values will be equal to running, I want to calculate independently in a simple dragon script and then c # apps import the file at the beginning of each run.
Simple (int x, double y) in the table, I would like to store the ordered 2D array (500-3000 + rows / columns) of Tulips and then the best / simplest way to import this data. I am looking for recommendations. For example, I have the data "" (x1, y1) in a text file. (X2, y2). (X3, y3). ... | (Xn, yn) such as "a very ugly solution for a problem that lends itself to a specific data structure or library. I am currently unaware. Any suggestion will be welcomed.
I have to go for a simplified CSV file. Given that all of your values are numbered, you have them in C # P>
Read in the file. Read all the text (filename). Spit (',')
You can get more C # options for CSV
On Python you can use the csv
module to read and write. Better Description, But Its Brief
Import csv author = csv.writer (filename) Author Author (Data)
Using CSV also allows you to improve future Along with flexibility, for further processing, export and import from other programs such as Excel.
Comments
Post a Comment