瀏覽代碼

fix error

master
Jeong Geol Kim 4 年之前
父節點
當前提交
19e6831227
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      extract_01.py
  2. 2
    2
      extract_02.py

+ 2
- 2
extract_01.py 查看文件

@@ -19,8 +19,8 @@ svo_list = sorted(svo_list)
19 19
 
20 20
 
21 21
 for svo in svo_list:
22
-  if svo[-5] == '1':
23
-    os.system('python3 /sources/depthsensing.py -c /sources/cfg.cfg -w /sources/mailsys.weights -m /sources/data.data -s ' + target_dir + svo + ' -o ' + target_dir + svo[:4] + '.csv')
22
+  if svo[-5] == '1':   
23
+    os.system('python3 /sources/depthsensing.py -c /sources/cfg.cfg -w /sources/mailsys.weights -m /sources/data.data -s ' + target_dir + svo + ' -o ' + target_dir + svo[:5] + '.csv')
24 24
   else:
25 25
     continue
26 26
 

+ 2
- 2
extract_02.py 查看文件

@@ -19,9 +19,9 @@ svo_list = sorted(svo_list)
19 19
 
20 20
 for svo in svo_list:
21 21
   if svo[-5] == '2':
22
-    os.system('python3 /sources/depthsensing.py -c /sources/cfg.cfg -w /sources/mailsys.weights -m /sources/data.data -s ' + target_dir + svo + ' -o ' + target_dir + svo[:4] + '.csv')
22
+    os.system('python3 /sources/depthsensing.py -c /sources/cfg.cfg -w /sources/mailsys.weights -m /sources/data.data -s ' + target_dir + svo + ' -o ' + target_dir + svo[:5] + '.csv')
23 23
   else:
24
-    pass
24
+    continue
25 25
 
26 26
 full_list = os.listdir(target_dir)
27 27
 csv_2_list = [file for file in full_list if file.endswith("2.csv")]

Loading…
取消
儲存