Skip to content

Commit

Permalink
Add spida xlsx converter (#126)
Browse files Browse the repository at this point in the history
Signed-off-by: David P. Chassin <dchassin@slac.stanford.edu>
Signed-off-by: David P. Chassin <david.chassin@me.com>
  • Loading branch information
David P. Chassin authored and dchassin committed Oct 18, 2023
1 parent b1aeb6c commit 67b716f
Show file tree
Hide file tree
Showing 8 changed files with 900 additions and 24 deletions.
1 change: 1 addition & 0 deletions converters/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ dist_pkgdata_DATA += converters/xls-spida2csv-geodata.py
# xlsx -> csv
dist_pkgdata_DATA += converters/xlsx2csv.py
dist_pkgdata_DATA += converters/xlsx-workbook2csv-table.py
dist_pkgdata_DATA += converters/xlsx-spida2csv-geodata.py

#
# SUPPORT MODULES
Expand Down
2 changes: 1 addition & 1 deletion converters/autotest/test_object_opt.glm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// /usr/local/opt/gridlabd/4.3.1-220814-develop_user_manual/share/gridlabd/csv-table2glm-object.py ./test_object.csv test_object_opt.glm {}
// /usr/local/opt/gridlabd/4.3.3-231003-develop_add_xlsx_converter-darwin_22-x86_64/share/gridlabd/csv-table2glm-object.py ./test_object.csv test_object_opt.glm {'class': 'test'}
object test {
name "item1";
value1 1.2;
Expand Down
16 changes: 7 additions & 9 deletions converters/xls-spida2csv-geodata.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import pandas as pd
import string
import math
import re
import gridlabd
import numpy as np
import os

"""Convert XLS SPIDAcalc pole data to geodata
SYNOPSIS
Expand All @@ -30,7 +22,13 @@
"""

import pandas
import pandas as pd
import string
import math
import re
import gridlabd
import numpy as np
import os

default_options = {
"precision" : 2,
Expand Down
Loading

0 comments on commit 67b716f

Please sign in to comment.