Skip to content

Commit

Permalink
Merge pull request #836 from ie3-institute/ms/#835-update-to-psdm-5.1
Browse files Browse the repository at this point in the history
Updating to PSDM version 5.1.0
  • Loading branch information
sebastian-peter authored Jun 26, 2024
2 parents 97f5dae + 962836f commit 0efb9ea
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Refactoring of `GridAgent` messages [#736](https://github.com/ie3-institute/simona/issues/736)
- Rewrote PVModelTest from groovy to scala [#646](https://github.com/ie3-institute/simona/issues/646)
- Making configuration of `RefSystem` via config optional [#769](https://github.com/ie3-institute/simona/issues/769)
- Updated PSDM to version 5.1.0 [#835](https://github.com/ie3-institute/simona/issues/835)

### Fixed
- Removed a repeated line in the documentation of vn_simona config [#658](https://github.com/ie3-institute/simona/issues/658)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dependencies {
/* Exclude our own nested dependencies */
exclude group: 'com.github.ie3-institute'
}
implementation('com.github.ie3-institute:PowerSystemDataModel:5.0.1') {
implementation('com.github.ie3-institute:PowerSystemDataModel:5.1.0') {
exclude group: 'org.apache.logging.log4j'
exclude group: 'org.slf4j'
/* Exclude our own nested dependencies */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,18 @@ object SampleWeatherSource {
else
Vector.empty[CoordinateDistance].asJava
}

override def findCornerPoints(
point: Point,
distance: ComparableQuantity[Length],
): util.List[CoordinateDistance] = {
// just a dummy implementation, because this is just a sample weather source
getClosestCoordinates(point, 4, distance)
}

override def validate(): Unit = {
/* nothing to do here */
}
}

// these lists contain the hourly weather values for each first of the month of 2011 + january of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,5 +450,17 @@ case object WeatherSourceSpec {
): util.List[CoordinateDistance] = {
calculateCoordinateDistances(coordinate, n, coordinateToId.keySet.asJava)
}

override def findCornerPoints(
point: Point,
distance: ComparableQuantity[Length],
): util.List[CoordinateDistance] = {
// just a dummy implementation
getClosestCoordinates(point, 4, distance)
}

override def validate(): Unit = {
/* nothing to do here */
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ object WeatherSourceWrapperSpec {
),
)

override def getSourceFields[C <: WeatherValue](
entityClass: Class[C]
): Optional[util.Set[String]] =
override def getSourceFields: Optional[util.Set[String]] =
// only required for validation
Optional.empty

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ trait EmInputTestData
Quantities.getQuantity(5d, KILOWATT),
Quantities.getQuantity(0.03, PU_PER_HOUR),
Quantities.getQuantity(0.95, PU),
Quantities.getQuantity(20d, PERCENT),
Quantities.getQuantity(50000d, HOUR),
100000,
)

protected val householdStorageInput = new StorageInput(
Expand Down

0 comments on commit 0efb9ea

Please sign in to comment.