OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
71 stars 50 forks source link

Variable names in results file, gets an whitespace added #1153

Closed Fredrik1Haider closed 2 years ago

Fredrik1Haider commented 2 years ago

Steps to reproduce the behavior

Reading the results file (an .csv) with python pandas.read_csv, the variable names contain an additional whitespace and quotation marks in front on the name, comes out as:

'" model.root.anVariable"'

Thus, requiring "filtering" to make it consistent with naming in ssm etc.

Expected behavior

Comes out as: 'model.root.anVariable'

Version and OS

arun3688 commented 2 years ago

@Fredrik1Haider the issue is fixed with this commit https://github.com/OpenModelica/OMSimulator/commit/86bee651f7eebbc1db55a0f6521edcc34478ee21, please test it

Fredrik1Haider commented 2 years ago

@arun3688 tested and works as requested, thank you!