﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4842	Variable browser in OMEdit confuses the display unit when loading results files	Dietmar Winkler	Adeel Asghar	"When using the workaround for OMEdits inability of displaying several simulation run results by exporting the result to CSV and then loading it again I noticed that the display unit switch is wrong in the variable browser.

Take this simple example:

{{{#!mo
model TempTest
 parameter Modelica.SIunits.Temperature T(displayUnit = ""degC"")= 353.15;
annotation(uses(Modelica(version = ""3.2.2"")));
end TempTest;
}}}

Run it, plot `T` and export the result to a csv file. 

That will then look like this:
{{{
""time"",""T""
0,80
1,80
}}}

When loading this file OMEdit assumes that ""80"" is in K (of course) BUT in the variable browser the displayUnit switch says ""degC"" when at actually displays the ""80"" as 80 K. 
So something is wrong with the displayUnit switch logic here. 

Actually upon export the value written should not have been 80 but 253.15 if no additional information of degC as unit is stored in the CSV file.

"	defect	closed	high	1.14.0	OMEdit		fixed		
