-
Notifications
You must be signed in to change notification settings - Fork 5
Improvements to finding corner points in IdCoordinateSource
.
#1017
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
Improvements to finding corner points in IdCoordinateSource
.
#1017
Conversation
…s-in-IdCoordinateSource
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.
Hmm. To be honest, I don't get the point. You're separating the functionality into two methods - ok, fine. But this is not more efficient, actually.
Now we're calculating distances.stream().filter(c -> !corners.contains(c))
on top of what we've been doing before. This had been part of the List<CoordinateDistance> other
before.
…s-in-IdCoordinateSource
My idea with this PR is to have the part of finding the corners to be accessible from outside. But I see your point. I changed it with the next commit. I also added a method that can be used to just return the corner points or an exact matching point. The reason for this is, that in SIMONA we get a list of points, that may contain only our corner points, and then we calculate the corner points again. Edit SP: ie3-institute/simona#625 |
…-corner-points-in-IdCoordinateSource' into ms/#1016-improvements-to-finding-corner-points-in-IdCoordinateSource
…s-in-IdCoordinateSource # Conflicts: # CHANGELOG.md
…s-in-IdCoordinateSource
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.
Just one request from my side for now, will look deeper into it later at some point
…s-in-IdCoordinateSource # Conflicts: # src/main/java/edu/ie3/datamodel/io/source/IdCoordinateSource.java
…s-in-IdCoordinateSource
…s-in-IdCoordinateSource
…s-in-IdCoordinateSource
…s-in-IdCoordinateSource
…s-in-IdCoordinateSource
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.
LGTM, just one question to the docs...
docs/readthedocs/models/input/additionaldata/idcoordinatesource.md
Outdated
Show resolved
Hide resolved
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.
Looks all good to me, thanks for your work done here!
Resolves #1016