Skip to content

Voltage sensor angle residual mod 2pi #975

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

Merged
merged 3 commits into from
Apr 29, 2025
Merged

Conversation

mgovers
Copy link
Member

@mgovers mgovers commented Apr 29, 2025

voltage angle residuals currently can be in the range [-2pi, 2pi]. This PR restricts it to the range (-pi, pi], effectively doing mod 2pi. This is also cfr. #961 and #962

NOTE: this PR changes the PGM behavior slightly, but it should only be an improvement to the output for users.

Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers mgovers marked this pull request as ready for review April 29, 2025 12:25
@mgovers mgovers added the feature New feature or request label Apr 29, 2025
@mgovers mgovers self-assigned this Apr 29, 2025
figueroa1395
figueroa1395 previously approved these changes Apr 29, 2025
Copy link
Contributor

@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.

Only a small related-ish comment. Rest looks good.

NOTE: this PR changes the PGM behavior slightly, but it should only be an improvement to the output for users.

Also, I see all the validation tests remained intact, so this should be okay. If anything, users would now face corrections.

Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers mgovers enabled auto-merge April 29, 2025 14:29
@mgovers mgovers added this pull request to the merge queue Apr 29, 2025
Merged via the queue into main with commit 9577d53 Apr 29, 2025
31 checks passed
@mgovers mgovers deleted the feature/voltage-sensor-residuals branch April 29, 2025 15:09
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo changed the title voltage sensor angle residual mod 2pi Voltage sensor angle residual mod 2pi May 13, 2025
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.

3 participants