Skip to content

Commit

Permalink
Merge branch 'df/#934-thermalHouseResults' into df/#878-thermalGridIT
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	src/main/scala/edu/ie3/simona/event/ResultEvent.scala
  • Loading branch information
danielfeismann committed Nov 15, 2024
2 parents 96a7dfb + 61e71a1 commit b7ebbe2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added option to directly zip the output files [#793](https://github.com/ie3-institute/simona/issues/793)
- Added weatherData HowTo for Copernicus ERA5 data [#967](https://github.com/ie3-institute/simona/issues/967)
- Add some quote to 'printGoodbye' [#997](https://github.com/ie3-institute/simona/issues/997)
- Add unapply method for ThermalHouseResults [#934](https://github.com/ie3-institute/simona/issues/934)
- Integration test for thermal grids [#878](https://github.com/ie3-institute/simona/issues/878)

### Changed
Expand Down
35 changes: 13 additions & 22 deletions src/main/scala/edu/ie3/simona/event/ResultEvent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,15 @@ object ResultEvent {
ComparableQuantity[Power],
ComparableQuantity[Temperature],
)
] = {
if (result != null) {
Some(
(
result.getTime,
result.getInputModel,
result.getqDot,
result.getIndoorTemperature,
)
] =
Option(result).map { result =>
(
result.getTime,
result.getInputModel,
result.getqDot,
result.getIndoorTemperature,
)
} else {
None
}
}
}

object CylindricalThermalStorageResult {
Expand All @@ -86,17 +81,13 @@ object ResultEvent {
ComparableQuantity[Energy],
)
] = {
if (result != null) {
Some(
(
result.getTime,
result.getInputModel,
result.getqDot,
result.getEnergy,
)
Option(result).map { result =>
(
result.getTime,
result.getInputModel,
result.getqDot,
result.getEnergy,
)
} else {
None
}
}
}
Expand Down

0 comments on commit b7ebbe2

Please sign in to comment.