File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,19 @@ def load_excel(self, path2excel='..\excel\learn/220-母线&线路-第一套合
48
48
self .portDict [key2 ] = port
49
49
matrix = self .matrixDict .get (title , Matrix )
50
50
if sheetName == '已配置' :
51
- port = matrix .get (key2 ,{object : float })
51
+ matrix [key2 ] = matrix .get (key2 , {object : float })
52
+ else : # new
53
+ for done in matrix :
54
+ done [key2 ] = done .get (key2 , float ) # is autoFill metaData useful?
52
55
self .portListDict [key ] = portList
53
56
except RuntimeError :
54
57
print (row [1 ])
55
58
print (dir (portList ))
56
59
57
- def load_test (self , path2excel = '..\excel\learn/220-母线&线路-第一套合并单元&第一套合并单元/赤厝.xls' ):
58
- self .load_excel (path2excel , sheetName = '所有发送' , title = '开出' )
59
- self .load_excel (path2excel , sheetName = '所有接收' , title = '开入' )
60
+
61
+ def load_test (self , path2excel = '..\excel\learn/220-母线&线路-第一套合并单元&第一套合并单元/赤厝.xls' ):
62
+ self .load_excel (path2excel , sheetName = '所有发送' , title = '开出' )
63
+ self .load_excel (path2excel , sheetName = '所有接收' , title = '开入' )
60
64
61
65
62
66
def transform (multilevelDict ):
You can’t perform that action at this time.
0 commit comments