-
Notifications
You must be signed in to change notification settings - Fork 12
Add operator strategies and remedial actions from a JSON file #978
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
Open
nao1345678
wants to merge
72
commits into
main
Choose a base branch
from
json-inputs-for-operator-strategies-and-actions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 69 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
bb6e8c3
[failed] added java and python impl for reading json contingency list…
5332784
new function for reading json files in contingency container impl
9014a4d
fix import
8cc01de
new add contingency from json file implementation
a8ba55c
fix add contingency from json file implementation
4bf1689
fixed add contingency from json file implementation
058e7d3
fixed add contingency from json file implementation
759dc0e
fixed venv
4bc688b
fixed error handling
c0c0d45
fixed error handling
2de47df
fixed add contingency impl and error handling
5a04d95
fix error in implementation
fdcb324
fix error in implementation
fdde7d4
fix error in test for json contingencies
6e312f7
update of add json contingencies function with error handling
00328dd
update of add json contingencies function with error handling
b22a043
fix checkstyle violation
2344c34
test with objects.requirenonnull
6b7b48a
test with try catch path initializer
599a5f7
test with try catch path initializer
21b666d
add test file contingencies.json
6939e17
deleted unused field
5fc4b63
deleted unused field
eeadfd4
fixed python impl of add_contingency_from_json_file function
c6cab0c
add python tests
a493ec8
rewrite of the python impl of the add_contingency_from_json_file func…
fbae2c7
rewrite python tests
42177ab
successful test to add contingencies from json file
ee6374a
data file contingencies.json
c22c268
add impl and test of addActionFromJsonFile and addOperatorStrategyFro…
6797cba
fix typo
9893a56
python impl of both function
3d72bd8
python tests
e9ad593
fix powsybl-cpp method
8b58fe8
clean unused imports
442a813
changing network
ab44563
add tests for operator strategies and documentation
3de29c2
changed test files
6a39902
Fix Network.create_operational_limits docstring (#956)
jeandemanged edb7490
Clean import config creation (#965)
geofjamg c15c626
Add supported extensions to documentation (#949)
HugoKulesza 0a3119b
Fix NPE + clarify error message for wrong extension names (#952)
HugoKulesza 01adbe9
Topovec is wrong when elements are lost by propagation (#966)
geofjamg 39f2dac
Change minimum version of cmake to reflect use of cmake_path (#967)
HugoKulesza 7091096
List supported actions in SA documentation (#957)
alicecaron aff268c
Add "Build the doc" section in the readme (#941)
alicecaron 0bf8b42
Expose voltage angles to Grid2op backend (#968)
geofjamg d6be59f
Nullable specific parameters category key (#969)
Lisrte 50f4823
adds a NadProfile param to the get NAD and write NAD methods (#942)
CBiasuzzi 0718eb5
Add DiscreteMeasurements extension dataframe (#975)
geofjamg 8373d33
Add documentation about RAO beta implementation (#958)
alicecaron eaaae6a
Switch snapshot ci to new app and rework notification design (#938)
rolnico bad6a9a
Adds more customization parameters to the NadProfile (#960)
CBiasuzzi 36dcb8c
Fix subscripts in per unit documentation (#962)
feldmarshall c6f1ffc
Update to PowSyBl dependencies 2025.0.0 (#974)
geofjamg 6d86170
Adding terminals connection action (#953)
HugoKulesza 8605861
Add voltage_level_details parameter (#963)
So-Fras 6e174c9
Fail early if crac is not valid (#979)
obrix 8645d40
extends NadProfile with style customizations (#976)
CBiasuzzi 84e46ab
Add JSON file content to ContingencyContainer (#959)
nao1345678 0019d17
Bump to v1.11.0
HugoKulesza 0bf09d8
Bump to v1.12.0.dev1
HugoKulesza 52fadb4
fix upload of wheels (force upgrade packaging) (#981)
HugoKulesza 9bbad75
fix syntax error
6a50f50
changed test files and python test
28e9ee9
deleted tests for c functions
b7a0dbd
deleted unused imports
1f83779
Merge branch 'main' into json-inputs-for-operator-strategies-and-actions
nao1345678 457b12f
add deleted function impl add operator strategy from json fie
2873cbd
add files to gitignore
8b624c8
delete unused import
de83cb7
delete unused import
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,3 @@ build/* | |
tests/_trial_temp/* | ||
|
||
*.orig | ||
|
||
# Documentation generated files (autosummary) | ||
docs/reference/api/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version" : "1.0", | ||
"actions" : [ { | ||
"type" : "SWITCH", | ||
"id" : "id1", | ||
"switchId" : "S1VL2_LCC1_BREAKER", | ||
"open" : true | ||
}, { | ||
"type" : "SWITCH", | ||
"id" : "id2", | ||
"switchId" : "S1VL2_BBS2_COUPLER_DISCONNECTOR", | ||
"open" : true | ||
}] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version" : "1.1", | ||
"operatorStrategies" : [ { | ||
"id" : "id1", | ||
"contingencyContextType" : "SPECIFIC", | ||
"contingencyId" : "contingency", | ||
"conditionalActions" : [ { | ||
"id" : "stage1", | ||
"condition" : { | ||
"type" : "TRUE_CONDITION" | ||
}, | ||
"actionIds" : [ "id1", "id2" ] | ||
} ] | ||
}] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
import org.assertj.core.data.Offset; | ||
import org.junit.jupiter.api.Test; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is useful ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't add these imports, and after a quick check they seem necessary. |
||
import java.nio.file.FileSystem; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
|
@@ -33,6 +34,8 @@ | |
*/ | ||
class SecurityAnalysisTest { | ||
|
||
protected FileSystem fileSystem; | ||
|
||
@Test | ||
void testStateMonitors() { | ||
SecurityAnalysisContext analysisContext = new SecurityAnalysisContext(); | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version" : "1.0", | ||
"actions" : [ { | ||
"type" : "SWITCH", | ||
"id" : "id1", | ||
"switchId" : "S1VL1_LD1_BREAKER", | ||
"open" : true | ||
}, { | ||
"type" : "SWITCH", | ||
"id" : "id2", | ||
"switchId" : "S1VL2_BBS2_COUPLER_DISCONNECTOR", | ||
"open" : true | ||
}] | ||
} |
15 changes: 15 additions & 0 deletions
15
java/pypowsybl/src/test/resources/OperatorStrategyFileTestV1.0.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version" : "1.1", | ||
"operatorStrategies" : [ { | ||
"id" : "id1", | ||
"contingencyContextType" : "SPECIFIC", | ||
"contingencyId" : "First contingency", | ||
"conditionalActions" : [ { | ||
"id" : "stage1", | ||
"condition" : { | ||
"type" : "TRUE_CONDITION" | ||
}, | ||
"actionIds" : [ "id1", "id2" ] | ||
} ] | ||
}] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
No need to remove this here