-
Notifications
You must be signed in to change notification settings - Fork 0
unsettable fields in voltage level filter modification #92
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: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mathieu DEHARBE <[email protected]>
Signed-off-by: Mathieu DEHARBE <[email protected]>
Signed-off-by: Mathieu DEHARBE <[email protected]>
Signed-off-by: Mathieu DEHARBE <[email protected]>
Signed-off-by: Mathieu DEHARBE <[email protected]>
} | ||
case TRANSIENT_REACTANCE -> modifyGeneratorShortCircuitAttributes( | ||
new AttributeModification<>(Double.parseDouble(newValue), OperationType.SET), | ||
new AttributeModification<>(newValue != null ? Double.parseDouble(newValue) : Double.NaN, OperationType.SET), |
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.
Maybe you should use Unset instead ? And change AttributeModification behavior for double to return NaN
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.
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.
Group issues :
- Unsetting Transient reactance on Generator does not seems to work.
- Crash if you change Transient reactance and Transformer reactance in the same time.
.withStepUpTransformerX(stepUpTransformerX.getValue()) | ||
.add(); | ||
if (Double.isNaN(directTransX.getValue()) && Double.isNaN(stepUpTransformerX.getValue())) { | ||
generator.removeExtension(GeneratorShortCircuit.class); |
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.
you should not remove extension because extension contains 2 values, remove extension only if 2 values are empty. You should only remove the concerned value. And also check if the extension is present, as when it is not present this will produce an exception.
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.
I removed the possibility to remove transient reactance (because it is impossible). So that part has been removed : aa8b2ca
directTransXNewValue = NO_VALUE; | ||
stepUpTransformerXNewValue = NO_VALUE; | ||
} else { | ||
generator.newExtension(GeneratorShortCircuitAdder.class) |
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.
same here
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.
It is now impossible to remove an extension through filter modification : aa8b2ca
Signed-off-by: Mathieu DEHARBE <[email protected]>
|
No description provided.