Skip to content

Commit

Permalink
Merge pull request #37 from GRIDAPPSD/releases/2021.09.0
Browse files Browse the repository at this point in the history
Release of version 2021.09.0
  • Loading branch information
tonya1 authored Oct 16, 2021
2 parents 72fa866 + a8dd4d8 commit cef9801
Show file tree
Hide file tree
Showing 18 changed files with 413 additions and 485 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7.10]
python-version: [3.8.12]

steps:
- name: Set static enviornment values
Expand All @@ -38,7 +38,7 @@ jobs:
GRIDAPPSD_PASSWORD: ${{ secrets.GRIDAPPSD_PASSWORD }}
run: |
mkdir out
pytest -rA --html=out/${{ env.RESULTS }} --self-contained-html --timeout=2700
pytest -rA --html=out/${{ env.RESULTS }} --self-contained-html --timeout=2700
- name: Archive test results
if: ${{ always() }}
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
env/
env*/
.idea/
__pycache__/
.pytest_cache/
dumps/
venv/
venv*/
pause.json
resume.json
1 change: 1 addition & 0 deletions 123-alarm-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'power_system_config': {'GeographicalRegion_name': '_24809814-4EC6-29D2-B509-7F8BFB646437', 'SubGeographicalRegion_name': '_1CD7D2EE-3C91-3248-5662-A43EFEFAC224', 'Line_name': '_C1C3E687-6FFD-C753-582B-632A27E28507'}, 'application_config': {'applications': []}, 'simulation_config': {'start_time': '1593118960', 'duration': '120', 'simulator': 'GridLAB-D', 'timestep_frequency': 1000, 'timestep_increment': 1000, 'run_realtime': False, 'simulation_name': 'ieee123', 'power_flow_solver_method': 'NR', 'model_creation_config': {'load_scaling_factor': 1, 'schedule_name': 'ieeezipload', 'z_fraction': 0, 'i_fraction': 1, 'p_fraction': 0, 'randomize_zipload_fractions': False, 'use_houses': False}}, 'test_config': {'events': [{'message': {'forward_differences': [{'object': '_BF5475DE-062E-43B6-8671-8A2EAA5737EE', 'attribute': 'Switch.open', 'value': 1}], 'reverse_differences': [{'object': '_BF5475DE-062E-43B6-8671-8A2EAA5737EE', 'attribute': 'Switch.open', 'value': 0}]}, 'event_type': 'ScheduledCommandEvent', 'occuredDateTime': 1373814030, 'stopDateTime': 1373814045}, {'message': {'forward_differences': [{'object': '_7262F9C3-2E8B-4069-AA13-BF4A655ACE35', 'attribute': 'Switch.open', 'value': 1}], 'reverse_differences': [{'object': '_7262F9C3-2E8B-4069-AA13-BF4A655ACE35', 'attribute': 'Switch.open', 'value': 0}]}, 'event_type': 'ScheduledCommandEvent', 'occuredDateTime': 1373814040, 'stopDateTime': 1373814055}, {'message': {'forward_differences': [{'object': '_7CBC54BB-4A93-410F-AF92-DDA633676AA0', 'attribute': 'Switch.open', 'value': 1}], 'reverse_differences': [{'object': '_7CBC54BB-4A93-410F-AF92-DDA633676AA0', 'attribute': 'Switch.open', 'value': 0}]}, 'event_type': 'ScheduledCommandEvent', 'occuredDateTime': 1373814040, 'stopDateTime': 1373814065}, {'message': {'forward_differences': [{'object': '_FD0823E4-C413-42A9-88CA-034CE070B4A3', 'attribute': 'TapChanger.step', 'value': 4}], 'reverse_differences': [{'object': '_FD0823E4-C413-42A9-88CA-034CE070B4A3', 'attribute': 'TapChanger.step', 'value': 10}]}, 'event_type': 'ScheduledCommandEvent', 'occuredDateTime': 1373814050, 'stopDateTime': 1373814100}, {'allInputOutage': False, 'allOutputOutage': False, 'event_type': 'CommOutage', 'faultMRID': '_f52aa46c-ce43-4aa4-8888-c1f3e4b684ae', 'inputOutageList': [{'attribute': 'TapChanger.step', 'objectMRID': '_FD0823E4-C413-42A9-88CA-034CE070B4A3'}], 'occuredDateTime': 1373814140, 'outputOutageList': [], 'stopDateTime': 1373814150}, {'message': {'forward_differences': [{'object': '_FD0823E4-C413-42A9-88CA-034CE070B4A3', 'attribute': 'TapChanger.step', 'value': 10}], 'reverse_differences': [{'object': '_FD0823E4-C413-42A9-88CA-034CE070B4A3', 'attribute': 'TapChanger.step', 'value': 5}]}, 'event_type': 'ScheduledCommandEvent', 'occuredDateTime': 1373814130, 'stopDateTime': 1373814150}], 'appId': ''}, 'service_configs': [{'id': 'gridappsd-alarms', 'user_options': {'default-perunit-confidence-band': 0.02, 'simulate-all': False, 'sensors-config': {}, 'default-normal-value': 100, 'random-seed': 0, 'default-aggregation-interval': 30, 'passthrough-if-not-specified': False, 'default-perunit-drop-rate': 0.05}}]}
10 changes: 7 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ Python script to start the gridappsd platform for automated testing

*** This will stop all your running containers ***

*** Requires python 3.7 ***
*** Requires python 3.8 ***

# setup python environment
sudo apt install python3.7 python3.7-venv
python3.7 -m venv env
sudo apt install python3.8 python3.8-venv
python3.8 -m venv env
source env/bin/activate
pip3 install -r requirements.txt

# set environment variables
export GRIDAPPSD_USER=<user>
export GRIDAPPSD_PASSWORD=<password>

# run pytest
pytest -s
3 changes: 1 addition & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def docker_dependencies():

@pytest.fixture
def gridappsd_client(request, docker_dependencies):
#with run_gridappsd_container(stop_after=STOP_CONTAINER_AFTER_TEST):
with run_gridappsd_container(stop_after=False):
with run_gridappsd_container(stop_after=STOP_CONTAINER_AFTER_TEST):
gappsd = GridAPPSD()
gappsd.connect()
assert gappsd.connected
Expand Down
2 changes: 1 addition & 1 deletion simulation_baseline_files/123-simulation.output

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simulation_baseline_files/13-node-sim.output

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simulation_baseline_files/9500-simulation.output

Large diffs are not rendered by default.

174 changes: 174 additions & 0 deletions simulation_config_files/123-alarm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"power_system_config": {
"GeographicalRegion_name": "_24809814-4EC6-29D2-B509-7F8BFB646437",
"SubGeographicalRegion_name": "_1CD7D2EE-3C91-3248-5662-A43EFEFAC224",
"Line_name": "_C1C3E687-6FFD-C753-582B-632A27E28507"
},

"application_config": {
"applications": [

]
},
"simulation_config": {
"start_time": "1373814000",
"duration": "300",
"simulator": "GridLAB-D",
"timestep_frequency": 1000,
"timestep_increment": 1000,
"run_realtime": false,
"simulation_name": "ieee123",
"power_flow_solver_method": "NR",
"model_creation_config": {
"load_scaling_factor": 1,
"schedule_name": "ieeezipload",
"z_fraction": 0,
"i_fraction": 1,
"p_fraction": 0,
"randomize_zipload_fractions": false,
"use_houses": false
}
},
"test_config":{

"events": [
{
"message": {
"forward_differences": [
{
"object": "_792127B0-9B3E-43EC-9D23-FD46F5A2F20D",
"attribute": "Switch.open",
"value": 1
}
],
"reverse_differences": [
{
"object": "_792127B0-9B3E-43EC-9D23-FD46F5A2F",
"attribute": "Switch.open",
"value": 0
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814030,
"stopDateTime": 1373814045
},
{
"message": {
"forward_differences": [
{
"object": "_28CFA3B0-5D09-4154-BC5A-BD0C45E9530D",
"attribute": "Switch.open",
"value": 1
}
],
"reverse_differences": [
{
"object": "_28CFA3B0-5D09-4154-BC5A-BD0C45E9530D",
"attribute": "Switch.open",
"value": 0
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814040,
"stopDateTime": 1373814055
},
{
"message": {
"forward_differences": [
{
"object": "_B2C95152-D6F7-4702-9910-E2543FB9B4F7",
"attribute": "Switch.open",
"value": 1
}
],
"reverse_differences": [
{
"object": "_B2C95152-D6F7-4702-9910-E2543FB9B4F7",
"attribute": "Switch.open",
"value": 0
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814040,
"stopDateTime": 1373814065
},
{
"message": {
"forward_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7",
"attribute": "TapChanger.step",
"value": 4
}
],
"reverse_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7B8D",
"attribute": "TapChanger.step",
"value": 10
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814050,
"stopDateTime": 1373814100
},
{
"allInputOutage": false,
"allOutputOutage": false,
"event_type": "CommOutage",
"faultMRID": "_f52aa46c-ce43-4aa4-8888-c1f3e4b684ae",
"inputOutageList": [
{
"attribute": "TapChanger.step",
"objectMRID": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7"
}
],
"occuredDateTime": 1373814140,
"outputOutageList": [],
"stopDateTime": 1373814150
},
{
"message": {
"forward_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7B8D",
"attribute": "TapChanger.step",
"value": 10
}
],
"reverse_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7B8",
"attribute": "TapChanger.step",
"value": 5
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814130,
"stopDateTime": 1373814150
}

],
"appId":""
},
"service_configs": [
{
"id": "gridappsd-alarms",
"user_options": {
"default-perunit-confidence-band": 0.02,
"simulate-all": false,
"sensors-config": {},
"default-normal-value": 100,
"random-seed": 0,
"default-aggregation-interval": 30,
"passthrough-if-not-specified": false,
"default-perunit-drop-rate": 0.05
}
}
]
}
148 changes: 7 additions & 141 deletions simulation_config_files/123-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,146 +29,12 @@
"use_houses": false
}
},
"test_config":{

"events": [
{
"message": {
"forward_differences": [
{
"object": "_792127B0-9B3E-43EC-9D23-FD46F5A2F20D",
"attribute": "Switch.open",
"value": 1
}
],
"reverse_differences": [
{
"object": "_792127B0-9B3E-43EC-9D23-FD46F5A2F",
"attribute": "Switch.open",
"value": 0
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814030,
"stopDateTime": 1373814045
},
{
"message": {
"forward_differences": [
{
"object": "_28CFA3B0-5D09-4154-BC5A-BD0C45E9530D",
"attribute": "Switch.open",
"value": 1
}
],
"reverse_differences": [
{
"object": "_28CFA3B0-5D09-4154-BC5A-BD0C45E9530D",
"attribute": "Switch.open",
"value": 0
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814040,
"stopDateTime": 1373814055
},
{
"message": {
"forward_differences": [
{
"object": "_B2C95152-D6F7-4702-9910-E2543FB9B4F7",
"attribute": "Switch.open",
"value": 1
}
],
"reverse_differences": [
{
"object": "_B2C95152-D6F7-4702-9910-E2543FB9B4F7",
"attribute": "Switch.open",
"value": 0
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814040,
"stopDateTime": 1373814065
},
{
"message": {
"forward_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7",
"attribute": "TapChanger.step",
"value": 4
}
],
"reverse_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7B8D",
"attribute": "TapChanger.step",
"value": 10
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814050,
"stopDateTime": 1373814100
},
{
"allInputOutage": false,
"allOutputOutage": false,
"event_type": "CommOutage",
"faultMRID": "_f52aa46c-ce43-4aa4-8888-c1f3e4b684ae",
"inputOutageList": [
{
"attribute": "TapChanger.step",
"objectMRID": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7"
}
],
"occuredDateTime": 1373814140,
"outputOutageList": [],
"stopDateTime": 1373814150
},
{
"message": {
"forward_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7B8D",
"attribute": "TapChanger.step",
"value": 10
}
],
"reverse_differences": [
{
"object": "_5D67EBEE-9158-4C56-9E39-12A9AC0D7B8",
"attribute": "TapChanger.step",
"value": 5
}
]
},
"event_type": "ScheduledCommandEvent",
"occuredDateTime": 1373814130,
"stopDateTime": 1373814150
}

"test_config":{
"events":[
],
"appId":""
},
"service_configs": [
{
"id": "gridappsd-alarms",
"user_options": {
"default-perunit-confidence-band": 0.02,
"simulate-all": false,
"sensors-config": {},
"default-normal-value": 100,
"random-seed": 0,
"default-aggregation-interval": 30,
"passthrough-if-not-specified": false,
"default-perunit-drop-rate": 0.05
}
}
]
}

},
"service_configs":[
]
}
Loading

0 comments on commit cef9801

Please sign in to comment.