Skip to content

Commit

Permalink
Replaced ModelicaServices
Browse files Browse the repository at this point in the history
The proper way to load files is with Modelica.Utilities.Files.loadResource
  • Loading branch information
mwetter committed Jan 4, 2024
1 parent 3fad3f6 commit 1e38648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse0.mo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ model SimpleHouse0
parameter Modelica.Units.SI.Density rhoWall = 2000 "Wall density";
parameter Modelica.Units.SI.SpecificHeatCapacity cpWall = 1000 "Wall specific heat capacity";
IBPSA.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam=
ModelicaServices.ExternalReferences.loadResource(
Modelica.Utilities.Files.loadResource(
"modelica://IBPSA/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"))
"Weather data reader"
annotation (Placement(transformation(extent={{-180,-10},{-160,10}})));
Expand Down

0 comments on commit 1e38648

Please sign in to comment.