Skip to content

Conversation

@Jerry-Jinfeng-Guo
Copy link
Member

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo commented Jun 1, 2025

The experimental flag is removed for current sensor in ILSE:

  • API
  • test
  • doc
  • Current sensor remain 'not implemented' in NRSE (as an experimental flag error as agreed in Release v1.11.x #998 (comment))
  • remove experimental feature flag from ILSE current sensor validation cases

Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo self-assigned this Jun 1, 2025
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the feature New feature or request label Jun 1, 2025
@mgovers
Copy link
Member

mgovers commented Jun 2, 2025

LGTM. what still needs to happen before it is ready for review/merge?

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo marked this pull request as ready for review June 2, 2025 08:16
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo requested a review from Copilot June 2, 2025 08:16
Copy link
Contributor

Copilot AI left a 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_features argument 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>
Copy link
Member

@figueroa1395 figueroa1395 left a 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.

Copy link
Member

@mgovers mgovers left a 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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 4, 2025

@mgovers mgovers added this pull request to the merge queue Jun 5, 2025
Merged via the queue into main with commit a6ef48a Jun 5, 2025
31 checks passed
@mgovers mgovers deleted the feature/remove-experimental-flag-ilse-current-sensor branch June 5, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants