You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting data as CSV from OMEdit GUI, time column format have a format reduced to 7 or 8 significant digits single precision thus doesn't allowing proper exploitation of data with fine time steps.
The data columns have a proper double precision compatible formatting.
Steps to Reproduce
Example:
Run Modelica.Electrical.Analog.Examples.Rectifier with equidistant time grid unchecked and CSV as output format
Export any variable as CSV with Export Variables from GUI
Lines 188 and 189 of Rectifier_res.csv generated by OM Simulator starts with:
0.001492868956501593,
0.001492869025532345,
Lines 188 and 189 of the exported csv starts with (I included the first exported variable to show the different precision)
0.00149287,517.3252174227919
0.00149287,517.3252151192146
Expected Behavior
Time column of a CSV export from OMEdit should have a formatting compatible with double precision data.
Screenshots
Version and OS
OpenModelica Version: 1.19.2 (64 bit)
OS: Windows 10, 64 bit
Modelica libraries 4.0.0
Additional Context
Looking at source code, in OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp
Time is formatted with with QString::number(); while StringHandler::number() is used for the variables.
Maybe using StringHandler::number() can be sufficient.
The text was updated successfully, but these errors were encountered:
Description
When exporting data as CSV from OMEdit GUI, time column format have a format reduced to 7 or 8 significant digits single precision thus doesn't allowing proper exploitation of data with fine time steps.
The data columns have a proper double precision compatible formatting.
Steps to Reproduce
Example:
Run Modelica.Electrical.Analog.Examples.Rectifier with equidistant time grid unchecked and CSV as output format
Export any variable as CSV with Export Variables from GUI
Lines 188 and 189 of Rectifier_res.csv generated by OM Simulator starts with:
0.001492868956501593,
0.001492869025532345,
Lines 188 and 189 of the exported csv starts with (I included the first exported variable to show the different precision)
0.00149287,517.3252174227919
0.00149287,517.3252151192146
Expected Behavior
Time column of a CSV export from OMEdit should have a formatting compatible with double precision data.
Screenshots
Version and OS
Additional Context
Looking at source code, in OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp
Time is formatted with with QString::number(); while StringHandler::number() is used for the variables.
Maybe using StringHandler::number() can be sufficient.
The text was updated successfully, but these errors were encountered: