Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Fix issue with CYME converter for CYME 9 Rev 6 MDB files #1271

Merged
merged 40 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
3a86cf9
Create test_xls-spida2csv-network.csv
Apr 27, 2022
afdf71f
Create test_xls-spida2csv-network.glm
Apr 27, 2022
8a37d15
Update xls-spida2csv-geodata.py
Apr 27, 2022
bc6195b
Merge branch 'develop' into develop-add-spidacalc-equipment-converter
May 2, 2022
262bf68
Update xls-spida2csv-geodata.py
May 2, 2022
5e398d3
Update xls-spida2csv-geodata.py
Jun 17, 2022
f4a2e7b
Update pole.cpp
Jun 17, 2022
920254a
Update pole.h
Jun 17, 2022
f8702f1
Update pole_configuration.cpp
Jun 17, 2022
bab4418
Update pole_configuration.h
Jun 17, 2022
a52f1b7
Update pole_mount.cpp
Jun 17, 2022
9c1909e
Update pole_mount.h
Jun 17, 2022
5689005
Merge branch 'develop' into develop-pole-enhancement
Jun 17, 2022
4996416
Merge branch 'develop' into develop-pole-enhancement
Jul 13, 2022
5852efb
Update pole.cpp
Jul 27, 2022
0ec0eb2
Update pole.h
Jul 27, 2022
2f96a78
Update pole_mount.cpp
Jul 27, 2022
dd16929
Update pole_mount.h
Jul 27, 2022
a9954df
Update test_pole.csv
Jul 27, 2022
142e682
Update pole.cpp
Aug 12, 2022
554f0f8
Update pole_mount.cpp
Aug 12, 2022
4c552a0
Update pole_mount.h
Aug 12, 2022
ef3d9b0
Update Makefile.mk
Aug 12, 2022
917bc59
Create pole_analysis.py
Aug 12, 2022
e81d3bd
Update pole_analysis.py
Aug 12, 2022
108b686
Merge branch 'develop' into develop-add-gridlabd-cyme-converter
Aug 17, 2022
035d6eb
Update json2png.py
Aug 17, 2022
282ddcd
Update Mdb_files.md
Aug 17, 2022
7e963a5
Update mdb-cyme2glm.py
Aug 25, 2022
443f749
Update mdb2glm.py
Aug 25, 2022
a334726
change test case IEEE-13-cyme to IEEE-13-cyme-object
Aug 25, 2022
e330c9f
add testcase for cyme converter
Aug 25, 2022
ba8cecc
Update Mdb_files.md
Aug 25, 2022
a6a6028
Merge branch 'develop' into develop-add-gridlabd-cyme-converter
aivanova5 Sep 7, 2022
58a26f6
Added options to MDB converter doc
MitchellAV Oct 5, 2022
34a4e53
Merge branch 'develop' into develop-add-gridlabd-cyme-converter
aivanova5 Oct 5, 2022
0af2452
Fixed small errors
MitchellAV Oct 19, 2022
6a99d14
Updated requirements txt for cyme converter
MitchellAV Oct 20, 2022
f418634
Merge branch 'develop' into develop-add-gridlabd-cyme-converter
MitchellAV Mar 31, 2023
0f3f674
Removed duplicate dependency
MitchellAV Mar 31, 2023
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
590 changes: 590 additions & 0 deletions converters/autotest/IEEE-13-cyme-network.glm

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions converters/autotest/test_mdbtable2glm.glm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#ifmissing /usr/local/bin/mdb-schema

#warning mdbtools is not available

#else // found /usr/local/bin/mdb-schema

#ifexist ../IEEE-13-cyme.mdb
#define DIR=..
#endif // exist ../IEEE-13-cyme.mdb

#input "${DIR:-.}/IEEE-13-cyme.mdb" -o IEEE-13-cyme-network.glm -t cyme

#ifexist ../IEEE-13-cyme-network.glm
#on_exit 0 diff -I '^[#/]' ../IEEE-13-cyme-network.glm IEEE-13-cyme-network.glm > gridlabd.diff
#endif // exist ../IEEE-13-cyme-network.glm

#endif // missing /usr/local/bin/mdb-schema
8 changes: 4 additions & 4 deletions converters/autotest/test_mdbtable2glmobject.glm
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#define DIR=..
#endif // exist ../IEEE-13-cyme.mdb

#input "${DIR:-.}/IEEE-13-cyme.mdb" -o IEEE-13-cyme.glm -t table -f object -p table=CYMLOAD -p class=test -p modules=powerflow,residential -p columns=DeviceNumber:name -p dtypes=NetworkId:int32
#input "${DIR:-.}/IEEE-13-cyme.mdb" -o IEEE-13-cyme-object.glm -t table -f object -p table=CYMLOAD -p class=test -p modules=powerflow,residential -p columns=DeviceNumber:name -p dtypes=NetworkId:int32

#ifexist ../IEEE-13-cyme.glm
#on_exit 0 diff -I '^[#/]' ../IEEE-13-cyme.glm IEEE-13-cyme.glm > gridlabd.diff
#endif // exist ../IEEE-13-cyme.glm
#ifexist ../IEEE-13-cyme-object.glm
#on_exit 0 diff -I '^[#/]' ../IEEE-13-cyme-object.glm IEEE-13-cyme-object.glm > gridlabd.diff
#endif // exist ../IEEE-13-cyme-object.glm

#endif // missing ${GLD_BIN}/mdb-schema
11 changes: 8 additions & 3 deletions converters/json2png.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ def help():
resolution = "300"
size = "300x200"
limit = None
xlim = None

try :
opts, args = getopt.getopt(sys.argv[1:],"hi:o:t:d:l:s:",["help","ifile=","ofile=","type=","with-nodes","dpi=","limit=","size="])
opts, args = getopt.getopt(sys.argv[1:],"hi:o:t:d:l:s:x:",["help","ifile=","ofile=","type=","with-nodes","dpi=","limit=","size=","xlim"])
except getopt.GetoptError:
sys.exit(2)
if not opts :
Expand Down Expand Up @@ -59,6 +60,8 @@ def help():
size = arg
elif opt in ("-l","--limit"):
limit = int(arg)/100
elif opt in ("-x","--xlim"):
xlim = arg.split(',')
else:
raise Exception("'%s' is an invalid command line option" % opt)

Expand Down Expand Up @@ -189,10 +192,12 @@ def profile(objects,root,pos=0):
plt.ylabel('Voltage (pu)')
plt.title(data["globals"]["modelname"]["value"])
plt.grid()
#plt.legend(["A","B","C"])
#plt.tight_layout()
plt.legend(["A","B","C"])
plt.tight_layout()
if limit:
plt.ylim([1-limit,1+limit])
if xlim:
plt.xlim([float(xlim[0]),float(xlim[1])])
plt.savefig(filename_png, dpi=int(resolution))

else:
Expand Down
Loading