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

Add network tool #232

Open
wants to merge 71 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
69fc199
Release 4.3.8 (#181)
Mar 20, 2024
b454962
Add pole model docs (#191)
aivanova5 Mar 30, 2024
81d25ee
Release 4.3.9 (#184)
Apr 18, 2024
23cfa6e
Start version 4.3.10
Apr 18, 2024
6008653
Enhance pypower module (#198)
Apr 20, 2024
2d8e7f8
Fix geodata loader (#199)
Apr 21, 2024
174a170
Add weather sensitivities (#201)
Apr 24, 2024
2ec73c6
Create CNAME
Apr 21, 2024
3b5d580
Delete CNAME
Apr 21, 2024
b2649b8
Fix OPF gencost error (#203)
May 4, 2024
ace0827
Fix database module compile error (#202)
May 4, 2024
033e097
Merge branch 'master' into develop
May 4, 2024
cf08cbf
Update geodata.cpp
May 4, 2024
4cc5cd6
Develop actions runner (#205)
Thistleman May 6, 2024
388c569
Develop actions packerfile (#207)
Thistleman May 6, 2024
d2073a5
Fix obj name segfault on initialization (#210)
May 20, 2024
9bbbe3e
Add multiplayer (#212)
Jun 6, 2024
4b08f57
Release 4.3.8 (#181)
Mar 20, 2024
2a58191
Add pole model docs (#191)
aivanova5 Mar 30, 2024
2d02758
Release 4.3.9 (#184)
Apr 18, 2024
82f9506
Start version 4.3.10
Apr 18, 2024
700a998
Enhance pypower module (#198)
Apr 20, 2024
6640d5f
Fix geodata loader (#199)
Apr 21, 2024
691845b
Add weather sensitivities (#201)
Apr 24, 2024
6567237
Create CNAME
Apr 21, 2024
0894cbb
Delete CNAME
Apr 21, 2024
8ef197d
Fix OPF gencost error (#203)
May 4, 2024
50e7bc4
Fix database module compile error (#202)
May 4, 2024
6d72d6c
Create CNAME
Apr 21, 2024
d7a009a
Delete CNAME
Apr 21, 2024
fcc9d76
Develop actions runner (#205)
Thistleman May 6, 2024
460102a
Develop actions packerfile (#207)
Thistleman May 6, 2024
e2b7305
Fix obj name segfault on initialization (#210)
May 20, 2024
f5d1807
Add multiplayer (#212)
Jun 6, 2024
7926411
Merge branch 'develop' of https://github.com/arras-energy/gridlabd in…
Jun 6, 2024
127f4b3
Signoff
Jun 6, 2024
dc1bb79
Merge branch 'develop' of https://github.com/arras-energy/gridlabd in…
Jun 6, 2024
c5f2eeb
Update pypower.cpp (#214)
Jun 6, 2024
ad88dca
Update Multiplayer.md (#213)
Jun 6, 2024
85d8860
Develop deprecate ubuntu 20 (#217)
Thistleman Jun 7, 2024
384db19
Update gridlabd-require (#221)
Jul 1, 2024
40cc8ca
Update requirements.csv (#223)
Jul 2, 2024
fd781c7
Update load.cpp (#224)
Jul 2, 2024
42a9af6
Fix pypower gencost (#204)
Jul 2, 2024
bb98763
Update docs (#200)
Jul 2, 2024
375e54f
Add REST API tool for server and module for client (#226)
Jul 7, 2024
f812ac7
Add rest server start (#228)
Jul 11, 2024
c5e64e4
Update Getting Started.md
Aug 11, 2024
e2837a3
Fix bus id errors (#230)
Aug 14, 2024
9befafd
Create network.py
dchassin Aug 26, 2024
3e30482
Update Makefile.mk
dchassin Aug 26, 2024
2400817
Update network.py
dchassin Aug 26, 2024
c75c41b
Add support for sparse matrix output in LIL format
dchassin Aug 27, 2024
972383e
Add solve option
dchassin Aug 27, 2024
25682dc
European timezone fixes (#234)
Sep 5, 2024
81ffbec
Update noaa_forecast.py (#235)
Sep 5, 2024
0f10c37
Fix macos deployment tests (#236)
Sep 5, 2024
6114cf5
Merge branch 'develop' into develop-add-network-tool
Sep 5, 2024
0cbbddf
Update requirements.csv (#237)
dchassin Sep 6, 2024
e5d2167
Merge branch 'develop' into develop-add-network-tool
dchassin Sep 6, 2024
186c9f7
Merge branch 'develop' into develop-add-network-tool
dchassin Sep 9, 2024
a331fd5
Update develop.yml
dchassin Sep 9, 2024
d30fb74
Update master.yml
dchassin Sep 9, 2024
d95e51e
Update version.h
dchassin Sep 9, 2024
16db273
Fix upload artifact actions version (#247)
dchassin Sep 9, 2024
a625360
Merge branch 'develop' into develop-add-network-tool
dchassin Sep 9, 2024
0145399
Merge branch 'develop' into develop-add-network-tool
dchassin Oct 27, 2024
64d56ab
Add network tool autotest
dchassin Nov 6, 2024
2d4f7cd
Merge branch 'develop' into develop-add-network-tool
dchassin Nov 15, 2024
4bb0eb4
Rename network extraction tool
dchassin Dec 31, 2024
d9c0f28
Merge branch 'develop' into develop-add-network-tool
dchassin Dec 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

- name: Setup system
Expand Down
1 change: 1 addition & 0 deletions tools/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dist_pkgdata_DATA += tools/market_model.py
dist_pkgdata_DATA += tools/mdb_info.py
dist_pkgdata_DATA += tools/metar2glm.py
dist_pkgdata_DATA += tools/meteostat_weather.py
dist_pkgdata_DATA += tools/network.py
dist_pkgdata_DATA += tools/noaa_forecast.py
dist_pkgdata_DATA += tools/nsrdb_weather.py
dist_pkgdata_DATA += tools/pole_analysis.py
Expand Down
3 changes: 2 additions & 1 deletion tools/autotest/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
13.glm
case14.glm
case14.txt
case14.txt
23 changes: 23 additions & 0 deletions tools/autotest/test_network.glm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#system gridlabd model get IEEE/13
#gridlabd -I 13.glm -o 13.json

#begin python
import json, network
model=json.load(open("13.json","r"))
network.FILETYPE="network"
result=network.get_powerflow_network(model["objects"])
tojson = lambda X,F: [[[x,y],F(z)] for x,y,z in zip(X.coords[0].tolist(),X.coords[1].tolist(),X.data.tolist())]
json.dump({
"N": result["N"],
"M": result["M"],
"line": result["line"],
"Z": [f"{x.real:g}{x.imag:+g}j" for x in result["Z"].tolist()],
"R": result["R"].tolist(),
"row" : result["row"],
"col" : result["col"],
"A" : tojson(result["A"],int),
"I" : tojson(result["I"],str),
"L" : tojson(result["L"],str),
"J" : tojson(result["J"],int),
},open("test_network.json","w"),indent=4)
#end
Loading
Loading