浏览代码

Update of display simulations curves

Jérôme BUISINE 5 年之前
父节点
当前提交
69fa81b893
共有 4 个文件被更改,包括 548 次插入17 次删除
  1. 23 16
      analysis/noise_mask_svd.ipynb
  2. 508 0
      analysis/statistic_analysis_svd.ipynb
  3. 11 1
      display_simulation_curves.py
  4. 6 0
      generate_all_simulate_curves.sh

文件差异内容过多而无法显示
+ 23 - 16
analysis/noise_mask_svd.ipynb


文件差异内容过多而无法显示
+ 508 - 0
analysis/statistic_analysis_svd.ipynb


+ 11 - 1
display_simulation_curves.py

@@ -100,7 +100,17 @@ def main():
     args = parser.parse_args()
 
     p_folder = args.folder
-    p_model = args.model
+
+    if args.model:
+        p_model = args.model
+    else:
+        # find p_model from folder if model arg not given (folder path need to have model name)
+        if p_folder.split('/')[-1]:
+            p_model = p_folder.split('/')[-1]
+        else:
+            p_model = p_folder.split('/')[-2]
+    
+    print(p_model)
 
     display_curves(p_folder, p_model)
 

+ 6 - 0
generate_all_simulate_curves.sh

@@ -0,0 +1,6 @@
+for file in "threshold_map"/*; do
+
+    echo ${file}
+
+    python display_simulation_curves.py --folder ${file}
+done