ソースを参照

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")]

読み込み中…
キャンセル
保存