Opened 10 years ago

Last modified 10 years ago

#2876 new enhancement

Write parameters in the csv file (or maybe in another file with only parameters)

Reported by: Adrian Pop Owned by: somebody
Priority: high Milestone: Future
Component: Run-time Version: trunk
Keywords: Cc:

Description

Currently is not possible to write parameters to anything but the .mat files.

People want to have the parameters also in .cvs format.
http://stackoverflow.com/questions/26244098/constants-in-csv-format/

If we add them then that particular column in the .csv will be the
same value over and over. Maybe is a good idea to add them in another
file _parameters.csv and only once.

Change History (3)

comment:1 by Martin Sjölund, 10 years ago

No; we don't support adding special second files since then we don't actually put the file where the user selected.
What you could do is have the file be:

var1...varnparam1...paramn
val1...valnvparam1...vparamn
val1...valn

But note that this breaks some csv parsing tools since the file is no longer square

comment:2 by Adrian Pop, 10 years ago

Or you could generate a square file and basically fill in the same value for the parameter columns.
We could have this on a flag, say --emit_parameters.

comment:3 by Martin Sjölund, 10 years ago

No, you don't want to fill parameters in every time step. It's silly to do so since they never change. The file just becomes huge for no reason.

Note: See TracTickets for help on using tickets.