Skip to content

The CombiTables documentation does not report that the .csv file type doesn't requre the header #4704

@AndreaBartolini

Description

@AndreaBartolini

The documentation of the CombiTables in the MSL reports that:

The table matrix can be defined in the following ways:
...
2. the data table can be Read from a file "fileName" where the matrix is stored
    as "tableName". Both text and MATLAB MAT-file format is possible. (The text format is described below)._
...

and that:

If tables are read from a text file, the file needs to have the following structure ("-----" is not part of the file content):

-----------------------------------------------------
#1
double tab1(5,2)   # comment line
  0   0
  1   1
  2   4
  3   9
  4  16
double tab2(5,2)   # another comment line
  0   0
  2   2
  4   8
  6  18
  8  32
----------------------------------------------------

This works fine if the file in which the data matrix is stored has the extension different from ".csv". If the extension of the file is ".csv" the above listed format generates an error in OpenModelica (not in Dymola).

If the first two header lines are removed and the file contains one only matrix then the data matrix file is properly read by both OpenModelica and Dymola.

If this different behavior of the ".csv" files has been intentionally implemented, then it should be described in the MSL documentation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions