-
Notifications
You must be signed in to change notification settings - Fork 0
Fix out of substation voltage level should not hinder geo search #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix out of substation voltage level should not hinder geo search #155
Conversation
8d05daa
to
a0096b7
Compare
mapSubstationsByLine.entrySet().stream() | ||
.filter(entry -> entry.getValue() != null) | ||
.filter(entry -> entry.getValue().getLeft() != null) | ||
.filter(entry -> entry.getValue().getRight() != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one filter call instead of 3 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it clearer that way. Do you think it could have a noticeable influence on performance ?
src/test/java/org/gridsuite/geodata/server/GeoDataServiceTest.java
Outdated
Show resolved
Hide resolved
Substations and LinePositions are returned in a reasonable time but some 73 substations can not be assigned coordinates, as for many lines. |
|
A search for lines geo-data currently raises an exception as part of the code assumes
This pull request adds a test for an adverse case and a fix for this case