-
Notifications
You must be signed in to change notification settings - Fork 46
Current sensor: remove experimental flag for ILSE #1007
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
Current sensor: remove experimental flag for ILSE #1007
Conversation
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
|
LGTM. what still needs to happen before it is ready for review/merge? |
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.
Pull Request Overview
Removes the experimental flag for current sensors in Iterative Linear State Estimation (ILSE) across API, core implementation, tests, and documentation.
- C++ core: only throw for Newton-Raphson when current sensors are present; ILSE no longer requires an experimental flag
- Tests: drop
experimental_featuresargument and update assertions to expect no throws for ILSE - Docs: remove warnings that ILSE support is experimental in component and calculation guides
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/test_error_handling.py | Removed experimental_features parameter from _calculate_state_estimation calls |
| tests/native_api_tests/test_api_model.cpp | Renamed subcase, changed ILSE assertions to CHECK_NOTHROW when disabled |
| power_grid_model_c/power_grid_model/include/power_grid_model/main_model_impl.hpp | Simplified check_no_experimental_features_used to only throw on Newton-Raphson |
| docs/user_manual/components.md | Deleted experimental warning around current sensors |
| docs/user_manual/calculations.md | Removed note marking ILSE with current sensors as experimental |
Comments suppressed due to low confidence (2)
power_grid_model_c/power_grid_model/include/power_grid_model/main_model_impl.hpp:808
- [nitpick] Consider extracting the exception message into a shared constant to ensure consistency and avoid duplication between code and tests.
throw ExperimentalFeature{"Newton-Raphson state estimation is not implemented for current sensors"};
tests/unit/test_error_handling.py:424
- Add a test case to verify that ILSE with current sensors no longer raises an ExperimentalFeature exception, ensuring the behavior change is covered.
model._calculate_state_estimation(decode_error=True)
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
figueroa1395
left a comment
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 some minor comments.
power_grid_model_c/power_grid_model/include/power_grid_model/main_model_impl.hpp
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.
also to be updated to reflect that iterative_linear no longer requires experimental_features to be enabled:
-
tests\data\state_estimation\current-sensor\global-current-sensor\params.json -
tests\data\state_estimation\current-sensor\local-current-sensor\params.json
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
|



The experimental flag is removed for current sensor in ILSE: