Skip to content

Commit

Permalink
Merge branch 'dev' into ps/#939-GitHubActionsPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSchmelter authored Oct 16, 2024
2 parents 2ad00b1 + 12f4e11 commit 0671015
Show file tree
Hide file tree
Showing 13 changed files with 739 additions and 557 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- EmAgents should be able to handle initialization [#945](https://github.com/ie3-institute/simona/issues/945)
- 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)

### Changed
- Adapted to changed data source in PSDM [#435](https://github.com/ie3-institute/simona/issues/435)
Expand Down Expand Up @@ -87,6 +88,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Renamed `ActivityStartTrigger`, `ScheduleTriggerMessage`, `CompletionMessage` in UML Diagrams[#675](https://github.com/ie3-institute/simona/issues/675)
- Simplifying quantity integration in QuantityUtil [#973](https://github.com/ie3-institute/simona/issues/973)
- Reorganized Jenkins pipeline to separate build and test stages for better efficiency [#938](https://github.com/ie3-institute/simona/issues/938)
- Rewrote SystemParticipantTest and MockParticipant from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)
- Rewrote ChpModelTest from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)

### Fixed
- Removed a repeated line in the documentation of vn_simona config [#658](https://github.com/ie3-institute/simona/issues/658)
Expand Down Expand Up @@ -117,6 +120,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improve code quality in fixedloadmodelspec and other tests [#919](https://github.com/ie3-institute/simona/issues/919)
- Fix power flow calculation with em agents [#962](https://github.com/ie3-institute/simona/issues/962)
- Fix scheduling at Evcs with more than one Ev at a time without Em [#787](https://github.com/ie3-institute/simona/issues/787)
- Fix CheckWindow duration [#921](https://github.com/ie3-institute/simona/issues/921)

## [3.0.0] - 2023-08-07

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ext {

scalaVersion = '2.13'
scalaBinaryVersion = '2.13.15'
pekkoVersion = '1.1.1'
pekkoVersion = '1.1.2'
jtsVersion = '1.20.0'
confluentKafkaVersion = '7.4.0'
tscfgVersion = '1.1.3'
Expand Down Expand Up @@ -98,7 +98,7 @@ dependencies {

/* logging */
implementation "com.typesafe.scala-logging:scala-logging_${scalaVersion}:3.9.5" // pekko scala logging
implementation "ch.qos.logback:logback-classic:1.5.8"
implementation "ch.qos.logback:logback-classic:1.5.10"

/* testing */
testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0'
Expand Down
4 changes: 2 additions & 2 deletions docs/readthedocs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Sphinx==7.4.7
sphinx-rtd-theme==2.0.0
Sphinx==8.1.3
sphinx-rtd-theme==3.0.1
sphinxcontrib-plantuml==0.30
myst-parser==4.0.0
markdown-it-py==3.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import scala.concurrent.duration.DurationLong
final case class RuntimeEventLogSink(
simulationStartDate: ZonedDateTime,
log: Logger,
private var last: Long = 0L,
) extends RuntimeEventSink {

override def handleRuntimeEvent(
Expand All @@ -45,15 +44,13 @@ final case class RuntimeEventLogSink(

case CheckWindowPassed(tick, duration) =>
log.info(
s"******* Simulation until ${calcTime(tick)} completed. ${durationAndMemoryString(duration - last)} ******"
s"******* Simulation until ${calcTime(tick)} completed. ${durationAndMemoryString(duration)} ******"
)
last = duration

case Ready(tick, duration) =>
log.info(
s"******* Switched from 'Simulating' to 'Ready'. Last simulated time: ${calcTime(tick)}. ${durationAndMemoryString(duration - last)} ******"
s"******* Switched from 'Simulating' to 'Ready'. Last simulated time: ${calcTime(tick)}. ${durationAndMemoryString(duration)} ******"
)
last = duration

case Simulating(startTick, endTick) =>
log.info(
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/edu/ie3/simona/main/RunSimona.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ trait RunSimona[T <: SimonaSetup] extends LazyLogging {
"\"Ich bin der Anfang, das Ende, die Eine, die Viele ist. Ich bin die Borg.\" - Borg-Königin (in Star Trek: Der erste Kontakt)",
"\"A horse! A horse! My kingdom for a horse!\" - King Richard III (in Shakespeare's Richard III, 1594)",
"\"Und wenn du lange in einen Abgrund blickst, blickt der Abgrund auch in dich hinein\" - F. Nietzsche",
"\"Before anything else, preparation is the key to success.\" - Alexander Graham Bell",
)

val rand = new Random
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final case class CylindricalThermalStorage(
minEnergyThreshold: Energy,
maxEnergyThreshold: Energy,
chargingPower: Power,
override protected var _storedEnergy: Energy,
override var _storedEnergy: Energy,
) extends ThermalStorage(
uuid,
id,
Expand Down
8 changes: 6 additions & 2 deletions src/main/scala/edu/ie3/simona/scheduler/RuntimeNotifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ final case class RuntimeNotifier(
val completedWindows =
(adjustedLastCheck + checkWindow) to completedTick by checkWindow

completedWindows.foreach { tick =>
notify(CheckWindowPassed(tick, duration(lastStartTime, nowTime)))
completedWindows.foldLeft(lastCheckWindowTime) {
case (lastTime, tick) =>
notify(
CheckWindowPassed(tick, duration(lastTime, nowTime))
)
None
}

completedWindows.lastOption
Expand Down
243 changes: 0 additions & 243 deletions src/test/groovy/edu/ie3/simona/model/participant/ChpModelTest.groovy

This file was deleted.

Loading

0 comments on commit 0671015

Please sign in to comment.