Skip to content

Commit

Permalink
Merge pull request #401 from tbeu/fix-loadSelector-annotation
Browse files Browse the repository at this point in the history
Use Modelica compliant annotation loadSelector
  • Loading branch information
Mathadon committed Oct 28, 2015
2 parents 97f656d + d0d439a commit 26ae0b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function getHeaderElementTMY3
"Gets an element from the header of a TMY3 weather data file"
input String filNam "Name of weather data file"
annotation (Dialog(
__Dymola_loadSelector(filter="Weather files (*.mos)", caption=
loadSelector(filter="Weather files (*.mos)", caption=
"Select weather file")));
input String start "Start of the string that contains the elements";
input String name "Name of data element, used in error reporting";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ within IDEAS.BoundaryConditions.WeatherData.BaseClasses;
function getLatitudeTMY3 "Gets the latitude from a TMY3 weather data file"
input String filNam "Name of weather data file"
annotation (Dialog(
__Dymola_loadSelector(filter="Weather files (*.mos)", caption=
loadSelector(filter="Weather files (*.mos)", caption=
"Select weather file")));
output Modelica.SIunits.Angle lat "Latitude from the weather file";
protected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ within IDEAS.BoundaryConditions.WeatherData.BaseClasses;
function getLongitudeTMY3 "Gets the longitude from a TMY3 weather data file"
input String filNam "Name of weather data file"
annotation (Dialog(
__Dymola_loadSelector(filter="Weather files (*.mos)", caption=
loadSelector(filter="Weather files (*.mos)", caption=
"Select weather file")));
output Modelica.SIunits.Angle lon "Longitude from the weather file";
protected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ within IDEAS.BoundaryConditions.WeatherData.BaseClasses;
function getTimeZoneTMY3 "Gets the time zone from a TMY3 weather data file"
input String filNam "Name of weather data file"
annotation (Dialog(
__Dymola_loadSelector(filter="Weather files (*.mos)", caption=
loadSelector(filter="Weather files (*.mos)", caption=
"Select weather file")));
output Modelica.SIunits.Time timZon "Time zone from the weather file";
protected
Expand Down
2 changes: 1 addition & 1 deletion IDEAS/BoundaryConditions/WeatherData/ReaderTMY3.mo
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ block ReaderTMY3 "Reader for TMY3 weather data"

//--------------------------------------------------------------
parameter String filNam="" "Name of weather data file" annotation (Dialog(
__Dymola_loadSelector(filter="Weather files (*.mos)", caption=
loadSelector(filter="Weather files (*.mos)", caption=
"Select weather file")));
parameter Modelica.SIunits.Angle lon(displayUnit="deg")=
IDEAS.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3(
Expand Down

0 comments on commit 26ae0b0

Please sign in to comment.