-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature/improve and test floating points in exception message #649
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
mgovers
requested review from
Jerry-Jinfeng-Guo,
figueroa1395,
nitbharambe and
zhen0427
June 21, 2024 10:59
mgovers
commented
Jun 21, 2024
power_grid_model_c/power_grid_model/include/power_grid_model/common/exception.hpp
Outdated
Show resolved
Hide resolved
…ommon/exception.hpp Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com> Signed-off-by: Martijn Govers <martygovers@hotmail.com>
nitbharambe
reviewed
Jun 21, 2024
mgovers
commented
Jun 21, 2024
power_grid_model_c/power_grid_model/include/power_grid_model/common/exception.hpp
Outdated
Show resolved
Hide resolved
…ommon/exception.hpp Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com> Signed-off-by: Martijn Govers <martygovers@hotmail.com>
mgovers
commented
Jun 21, 2024
power_grid_model_c/power_grid_model/include/power_grid_model/common/exception.hpp
Outdated
Show resolved
Hide resolved
…ommon/exception.hpp Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com> Signed-off-by: Martijn Govers <martygovers@hotmail.com>
mgovers
commented
Jun 21, 2024
power_grid_model_c/power_grid_model/include/power_grid_model/common/exception.hpp
Outdated
Show resolved
Hide resolved
…ommon/exception.hpp Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com> Signed-off-by: Martijn Govers <martygovers@hotmail.com>
mgovers
commented
Jun 21, 2024
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com> Signed-off-by: Martijn Govers <martygovers@hotmail.com>
nitbharambe
approved these changes
Jun 21, 2024
Jerry-Jinfeng-Guo
approved these changes
Jun 21, 2024
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.
The PR title is not the most descriptive one unfortunately ;)
mgovers
changed the title
Feature/improve test exceptions
Feature/improve and test floating points in exception message
Jun 21, 2024
Quality Gate passedIssues Measures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve error message with floating point values
Before:
After:
@figueroa1395 since I reran the notebook, you will run into some merge conflicts. On your branch, just make sure you're on the latest PGM core version. To resolve the merge conflict, just run
git add docs/examples && git reset docs/examples && git checkout docs/examples
and re-run all of them