diff --git a/CHANGELOG.md b/CHANGELOG.md index 389d91cd85..64747c2082 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Replace `PvModel` with its new implementation [#1149](https://github.com/ie3-institute/simona/issues/1149) - Replace `WecModel` with its new implementation [#1154](https://github.com/ie3-institute/simona/issues/1154) - Replace `StorageModel` with its new implementation [#1153](https://github.com/ie3-institute/simona/issues/1153) +- Use ValidationUtils for ThermalGrids [#1117](https://github.com/ie3-institute/simona/issues/1117) ### Changed - Adapted to changed data source in PSDM [#435](https://github.com/ie3-institute/simona/issues/435) diff --git a/src/main/scala/edu/ie3/simona/io/grid/GridProvider.scala b/src/main/scala/edu/ie3/simona/io/grid/GridProvider.scala index 8777c1a3e9..262d499df1 100644 --- a/src/main/scala/edu/ie3/simona/io/grid/GridProvider.scala +++ b/src/main/scala/edu/ie3/simona/io/grid/GridProvider.scala @@ -100,8 +100,12 @@ object GridProvider extends LazyLogging { new FileNamingStrategy(), ) .asScala - .map(thermalGrid => thermalGrid.bus() -> thermalGrid) + .map { thermalGrid => + ValidationUtils.check(thermalGrid) + thermalGrid.bus() -> thermalGrid + } .toMap + case None => throw new RuntimeException( "CSVGridSource requires csv params to be set!"