Skip to content

Commit

Permalink
Add structure figures
Browse files Browse the repository at this point in the history
  • Loading branch information
jungtaekkim committed Mar 28, 2024
1 parent 47511de commit 070f84f
Show file tree
Hide file tree
Showing 30 changed files with 7 additions and 4 deletions.
Binary file added figures/structure_layers_2_001.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_002.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_003.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_004.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_005.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_006.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_007.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_2_008.pdf
Binary file not shown.
Binary file added figures/structure_layers_2_008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_4_001.pdf
Binary file not shown.
Binary file added figures/structure_layers_4_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_4_002.pdf
Binary file not shown.
Binary file added figures/structure_layers_4_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_4_003.pdf
Binary file not shown.
Binary file added figures/structure_layers_4_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_4_004.pdf
Binary file not shown.
Binary file added figures/structure_layers_4_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_4_005.pdf
Binary file not shown.
Binary file added figures/structure_layers_4_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/structure_layers_6_001.pdf
Binary file not shown.
Binary file added figures/structure_layers_6_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/plot_bayesian_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_means_sems(values):

if __name__ == '__main__':
show_figure = True
save_figure = True
save_figure = False

for num_layers in num_layerss:
transparencies_all = []
Expand Down
9 changes: 6 additions & 3 deletions src/plot_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def plot_structure(materials, thicknesses, show_figure, save_figure, str_figure)
plt.tight_layout()

if save_figure:
plt.savefig(os.path.join(path_all, f'{str_figure}.pdf'),
plt.savefig(os.path.join(path_figures, f'{str_figure}.pdf'),
format='pdf', transparent=True, bbox_inches='tight')
plt.savefig(os.path.join(path_all, f'{str_figure}.png'),
plt.savefig(os.path.join(path_figures, f'{str_figure}.png'),
format='png', transparent=True, bbox_inches='tight')

if show_figure:
Expand Down Expand Up @@ -176,10 +176,13 @@ def plot_structure(materials, thicknesses, show_figure, save_figure, str_figure)

indices = []
for ind, pareto in enumerate(pareto_frontier):
if pareto[0] >= 0.65 and pareto[1] >= 30:
if pareto[0] >= 0.60 and pareto[1] >= 30:
indices.append(ind)
print(len(indices))

materials_all = materials_all[indices]
thicknesses_all = thicknesses_all[indices]

for ind, elem in enumerate(zip(materials_all, thicknesses_all)):
materials, thicknesses = elem
str_figure = f'structure_layers_{num_layers}_{ind + 1:03d}'
Expand Down

0 comments on commit 070f84f

Please sign in to comment.