Skip to content

Commit

Permalink
Merge branch 'refs/heads/dev' into df/#729-additional-tests-thermal-h…
Browse files Browse the repository at this point in the history
…ouse
  • Loading branch information
danielfeismann committed Jul 5, 2024
2 parents e8b02bf + a7eb902 commit 6f53562
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed grid within GridSpec test [#806](https://github.com/ie3-institute/simona/issues/806)
- Fixed log entry after power flow calculation [#814](https://github.com/ie3-institute/simona/issues/814)
- Delete "Indices and tables" on the index page [#375](https://github.com/ie3-institute/simona/issues/375)
- Fixed provision of controllingEms within buildParticipantToActorRef [#841](https://github.com/ie3-institute/simona/issues/841)

## [3.0.0] - 2023-08-07

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,26 @@ class GridAgentController(
.map { participant =>
val node = participant.getNode

val controllingEm =
participant.getControllingEm.toScala
.map(_.getUuid)
.map(uuid =>
allEms.getOrElse(
uuid,
throw new CriticalFailureException(
s"EM actor with UUID $uuid not found."
),
)
)

val actorRef = buildParticipantActor(
participantsConfig.requestVoltageDeviationThreshold,
participantConfigUtil,
outputConfigUtil,
participant,
thermalIslandGridsByBusId,
environmentRefs,
allEms.get(participant.getUuid),
controllingEm,
)
introduceAgentToEnvironment(actorRef)
// return uuid to actorRef
Expand Down

0 comments on commit 6f53562

Please sign in to comment.