-
Notifications
You must be signed in to change notification settings - Fork 6
PR on #94: add AsymPowerSensorArray and remove optional columns from GenericBranch #113
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
base: feature/45-add-extra-pgm-components
Are you sure you want to change the base?
PR on #94: add AsymPowerSensorArray and remove optional columns from GenericBranch #113
Conversation
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
Signed-off-by: Thijs Baaijen <[email protected]>
|
| x1: NDArray[np.float64] # positive-sequence reactance | ||
| g1: NDArray[np.float64] # positive-sequence conductance | ||
| b1: NDArray[np.float64] # positive-sequence susceptance | ||
| k: NDArray[np.float64] # off-nominal ratio |
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.
@vincentkoppen and me think it's better to leave these out, so that PGM can handle the defaults. If a user wants to provide other values, they can easily extend there GenericBranchArray. This is also how we do it in other array (e.g., SourceArray, LineArray)
| for field in sym_pow_fields: | ||
| assert field in pow_sens.dtype.fields | ||
|
|
||
| def test_asymmetric_sensor_array(): |
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 first part of the original test did't really test anything useful
| "generic_branch", | ||
| "asym_line", | ||
| "sym_gen", | ||
| "asym_power_sensor", |
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.
sorted the fields for better readability



Add
AsymPowerSensorArrayand remove defaults fromGenericBranch