Skip to content
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

Filter extension for in-memory copy with OLF #154

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

antoinebhs
Copy link
Contributor

@antoinebhs antoinebhs commented Nov 15, 2024

In order for the in-memory copy to work, we have to ensure that the extensions copied in memory are present in the classpath. Anyway, only a subset of extensions are required for the security analysis with OLF. That's the list OPENLOADFLOW_SECURITY_ANALYSIS_EXTENSIONS.
To do that, I took all the extensions from OLF and filtered them for the copy.
Unfortunately, the NetworkSerde.copy() API does not have the option to pass the extension filter as parameter so I forked the method from powsybl-core.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
66.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@jonenst jonenst merged commit 9ad82d9 into main Nov 15, 2024
2 of 3 checks passed
@jonenst jonenst deleted the filter-extensions-for-copy branch November 15, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants