This exact same issue was raised in #2216 and apparently fixed, but it appears I still get the problem in 1.8.2 and I can't re-open an issue. Feel free to merge or anything if I did wrong.
Describe the bug
Saving a matrix to a csv file using save returns a file where all values are separated by ,, despite the matrix containing several rows.
To Reproduce
Run the following :
model mat2CSV
global
{
matrix m <- matrix([[1,2,3],[2,3,4],[3,4,5]]);
init {
write m;
save m to: "./m.csv" type:csv rewrite:true header:false;
}
}
experiment test;
To obtain the following csv :
1,2,3,2,3,4,3,4,5
Expected behavior
A CSV file with different separators for columns and lines, e.g. :
Hi,
This exact same issue was raised in #2216 and apparently fixed, but it appears I still get the problem in 1.8.2 and I can't re-open an issue. Feel free to merge or anything if I did wrong.
Describe the bug Saving a matrix to a csv file using
save
returns a file where all values are separated by,
, despite the matrix containing several rows.To Reproduce Run the following :
To obtain the following csv :
Expected behavior A CSV file with different separators for columns and lines, e.g. :
Specs: