Skip to content

Bump com.github.ie3-institute:PowerSystemDataModel from 7.0.0 to 8.1.0#599

Open
dependabot[bot] wants to merge 41 commits intodevfrom
dependabot/gradle/dev/com.github.ie3-institute-PowerSystemDataModel-8.1.0
Open

Bump com.github.ie3-institute:PowerSystemDataModel from 7.0.0 to 8.1.0#599
dependabot[bot] wants to merge 41 commits intodevfrom
dependabot/gradle/dev/com.github.ie3-institute-PowerSystemDataModel-8.1.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 28, 2025

Bumps com.github.ie3-institute:PowerSystemDataModel from 7.0.0 to 8.1.0.

Release notes

Sourced from com.github.ie3-institute:PowerSystemDataModel's releases.

8.1.0

Added

  • Added CITATION.cff #1380
  • Enhanced check for invalid field names in sources #1383
  • Enhancing value retrieval in TimeSeriesSource 1280
  • Enhancing the LoadProfileSource to return the resolution 1288
  • Enhancing Validation for sRated of HpTypeInput 1394
  • Added updated BdewStandardLoadProfiles #1292

Changed

  • Fixed CFF-Version #1392
  • Enhanced ValidationUtils for LoadModel to check for correct profile naming #1357

8.0.0

Added

  • Extend Validation to EnergyManagement Systems. #1356

Fixed

  • Fixed handling of CongestionResult.InputModelType in EntityProcessor #1325
  • Fixed em fields in input models #1331
  • Fixed valid fields for EmInput #1360

Changed

  • Updated dependabot workflow and added CODEOWNERS #1328
  • Extend azimuth angle range to [-180°, 180°] for PV inputs #1330
  • Improved error messages when reading and validating an invalid grid #1354
  • Changed SubgridContainer to represent galvanically seperated grids #1226
Changelog

Sourced from com.github.ie3-institute:PowerSystemDataModel's changelog.

[8.1.0] - 2025-07-25

Added

  • Added CITATION.cff #1380
  • Enhanced check for invalid field names in sources #1383
  • Enhancing value retrieval in TimeSeriesSource 1280
  • Enhancing the LoadProfileSource to return the resolution 1288
  • Enhancing Validation for sRated of HpTypeInput 1394
  • Added updated BdewStandardLoadProfiles #1292

Changed

  • Fixed CFF-Version #1392
  • Enhanced ValidationUtils for LoadModel to check for correct profile naming #1357

[8.0.0] - 2025-07-22

Added

  • Extend Validation to EnergyManagement Systems. #1356

Fixed

  • Fixed handling of CongestionResult.InputModelType in EntityProcessor #1325
  • Fixed em fields in input models #1331
  • Fixed valid fields for EmInput #1360

Changed

  • Updated dependabot workflow and added CODEOWNERS #1328
  • Extend azimuth angle range to [-180°, 180°] for PV inputs #1330
  • Improved error messages when reading and validating an invalid grid #1354
  • Changed SubgridContainer to represent galvanically seperated grids #1226
Commits
  • 21ed55d Merge pull request #1399 from ie3-institute/rel/df/#1398-release_8.1.0
  • 4dcd202 update citation cff
  • 90a7fd1 update changelog
  • 690f348 changelog
  • 4a1adb6 Merge branch 'dev' into rel/df/#1398-release_8.1.0
  • fd1758c Merge pull request #1358 from ie3-institute/df/#1357-validation-load
  • 835e05f fix test
  • 7da594a fmt and docs
  • 085cad5 Merge remote-tracking branch 'origin/df/#1357-validation-load' into df/#1357-...
  • 9095892 refactor supported load profiles
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jul 28, 2025
@dependabot dependabot bot added the java Pull requests that update Java code label Jul 28, 2025
Bumps [com.github.ie3-institute:PowerSystemDataModel](https://github.com/ie3-institute/PowerSystemDatamodel) from 7.0.0 to 8.1.0.
- [Release notes](https://github.com/ie3-institute/PowerSystemDatamodel/releases)
- [Changelog](https://github.com/ie3-institute/PowerSystemDataModel/blob/dev/CHANGELOG.md)
- [Commits](ie3-institute/PowerSystemDataModel@7.0.0...8.1.0)

---
updated-dependencies:
- dependency-name: com.github.ie3-institute:PowerSystemDataModel
  dependency-version: 8.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/gradle/dev/com.github.ie3-institute-PowerSystemDataModel-8.1.0 branch from f66134c to 34ba3f8 Compare August 4, 2025 05:39
@danielfeismann danielfeismann marked this pull request as draft August 5, 2025 11:57
@danielfeismann danielfeismann self-assigned this Oct 13, 2025
@danielfeismann danielfeismann added this to the Version 1.0 milestone Oct 13, 2025
@danielfeismann danielfeismann marked this pull request as ready for review October 13, 2025 15:46
Copy link
Member

@staudtMarius staudtMarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are some comments from my side.

Copy link
Member

@sebastian-peter sebastian-peter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions and comments from my side :)

Comment on lines 223 to 243
"handle all received grid results" in new GridSupport {
val lvGrids: Seq[SubGridContainer] = Seq(mockSubGrid(1))
val mvGrids: Seq[SubGridContainer] = Seq(mockSubGrid(3))
val streetGraph: OsmGraph = new OsmGraph()

/* Result is forwarded to listener */
// LV first
runningTestKit.run(
MessageAdapters.WrappedLvCoordinatorResponse(
RepLvGrids(lvGrids, streetGraph)
)
)

// MV
runningTestKit.run(
MessageAdapters.WrappedMvCoordinatorResponse(
RepMvGrids(mvGrids, None, Map.empty, assetInformation)
)
)

runningTestKit.run(HandleGridResults)
resultListener.expectMessageType[GridResult]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering how this worked before, and why now these additional messages are necessary. Maybe you have more insight?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a very good question! I just remember that it broke and it looked like the GridResults were not there and thus couldn't be handled.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I debugged through the former test code, and it threw the following:

edu.ie3.datamodel.exceptions.InvalidGridException: Cannot determine the predominant voltage level. Following voltage levels are present:

So I think something in this test is not properly working...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some deep look on this. With #1366 we updated ContainerUtils.determinePredominantVoltLvl() and this now filters the nodes of rawGrid by the subsetNo.

   Map<VoltageLevel, Long> voltageLevelCount =
        rawGrid.getNodes().stream()
            .filter(n -> n.getSubnet() == subnet)

This leads to the situation that the inital subset number of our mocked mv grid is 100 but get later updated in SubGridHandling.updateNodeSubNetNumbers() to be 3. However, this node will than get filtered out, which lead to the case that no predominant voltage level can be determined since this is the only node in the grid.

Solution: mock subgrid initally with subsetNo = 3.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I think there's still a deeper problem here. What you've done now is that you gave the MV grid the subgrid number that it would be assigned later in SubGridHandling.updateNodeSubNetNumbers. However, we cannot expect the MvCoordinator, who orders the MV grid creation, to assign exactly the number that we would re-assign in updateNodeSubNetNumbers later.

(If you're curious, the MV grid coordinator picks the sub grid number here:)

voronoiCoordinator ! StartMvGraphGeneration(
index + 1,
polygon,
uuidOption,
streetGraph,
assetInformation,
)

I've dug a little deeper, and this is where the exception occurs (this is what you described, Daniel, but this also for me so that I'll remember later... It's always a fight to dig into the rabbit hole again):
https://github.com/ie3-institute/PowerSystemDataModel/blob/91d5c3eb591cae4f32d912886aeb54f78d37fcab/src/main/java/edu/ie3/datamodel/models/input/container/SubGridContainer.java#L23-L33

determinePredominantVoltLvl crashes here because we are supplying it with a grid that has already adapted its node (which now has subgrid number 3), but the int subnet we're supplying is still 100. So in my opinion, this would also happen in a similar fashion if you run OSMoGrid normally.

Why was this not an issue before? The earlier imlementation of determinePredominantVoltLvl (before it changed with ie3-institute/PowerSystemDataModel#1366) did not really use the supplied subnet number to filter for the nodes of the actual sub grid. Now it does (which is fine imho), but this means we have to make sure that the subgrid number in SubGridContainer is actually the correct one.

But, I think if we update SubGridHandling.processResults to also update the subgrid numbers of the SubGridContainers, we're fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, @staudtMarius what is mvNodeChanges about?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this not an issue before? The earlier imlementation of determinePredominantVoltLvl (before it changed with ie3-institute/PowerSystemDataModel#1366) did not really use the supplied subnet number to filter for the nodes of the actual sub grid. Now it does (which is fine imho), but this means we have to make sure that the subgrid number in SubGridContainer is actually the correct one.

Yes! That is also what I realized last week. I agree, the filter is right there and thus we should solve this here. Thanks that you took the time to dig that deep into this.

Copy link
Member

@danielfeismann danielfeismann Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be caused some where here

)(implicit
subnetNr: Int = 1,
transformer2Ws: util.Set[Transformer2WInput] =

We implicitly provide 1 as subnetnumber to each lv subgrid (and also the same uuid), but filter later e.g. for subnet 2.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved some if the things I found into #682

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants