Skip to content

Quote signal names in CSV output#1528

Merged
arun3688 merged 1 commit intoOpenModelica:masterfrom
AxelMatstoms:quote-csv-output
Oct 28, 2025
Merged

Quote signal names in CSV output#1528
arun3688 merged 1 commit intoOpenModelica:masterfrom
AxelMatstoms:quote-csv-output

Conversation

@AxelMatstoms
Copy link
Copy Markdown
Contributor

Related Issues

#1197

Purpose

FMUs with the structured variable naming convention may contain comma signs in the signal names. For example:

  • system.root.example.x[1,1], or
  • system.root.example.der(y, 2).

If these signal names are not quoted, the output CSV files can not be parsed by other tools, e.g. OMEdit. Therefore, OMSimulator should quote signal names in CSV output, ensuring that CSV output is correct.

Approach

This PR updates CSVWriter to quote signal names when writing the header.

FMUs with the structured variable naming convention may contain comma
signs in the signal names. For example:
* system.root.example.x[1,1], or
* system.root.example.der(y, 2).

If these signal names are not quoted, the output CSV files can not be
parsed by other tools, e.g. OMEdit. Therefore, OMSimulator should quote
signal names in CSV output, ensuring that CSV output is correct.
@arun3688 arun3688 merged commit 6290072 into OpenModelica:master Oct 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants