bndl commited on
Commit
4a5a174
·
1 Parent(s): 253af21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -10,6 +10,7 @@ from huggingface_hub import Repository
10
  import itertools
11
  import time
12
  import cv2
 
13
 
14
  # Unique phase elements
15
 
@@ -54,6 +55,18 @@ input_cols = {
54
  "Choose the microstructure (SEC means the secondary/tertiary microstructure is not one of FCC, BCC, HCP, L12, B2, Laves, Laves (C14), Laves (C15))",
55
  }
56
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  def process_microstructure(list_phases):
58
  permutations = list(itertools.permutations(list_phases))
59
  permutations_strings = [str('+'.join(list(e))) for e in permutations]
 
10
  import itertools
11
  import time
12
  import cv2
13
+ from domain_space import load_domain_space, create_plot, create_slicer_update
14
 
15
  # Unique phase elements
16
 
 
55
  "Choose the microstructure (SEC means the secondary/tertiary microstructure is not one of FCC, BCC, HCP, L12, B2, Laves, Laves (C14), Laves (C15))",
56
  }
57
 
58
+ with open("conf_uncertainty_test.yaml", "rb") as file:
59
+ conf = yaml.safe_load(file)
60
+
61
+ space_dict = conf["domain_space"]["uncertainty_space_dict"]
62
+ explored_dict = conf["domain_space"]["explored_space_dict"]
63
+
64
+ df_synth = load_domain_space(conf["domain_space"]["design_space_path"])
65
+
66
+ plot_fn, update_plot_fn = create_plot(df_synth, explored_dict)
67
+ update_slicer_fn = create_slicer_update(space_dict)
68
+
69
+
70
  def process_microstructure(list_phases):
71
  permutations = list(itertools.permutations(list_phases))
72
  permutations_strings = [str('+'.join(list(e))) for e in permutations]