Skip to content

Commit

Permalink
chore: fix a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed May 10, 2024
1 parent 330da1a commit 48ae117
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -52,7 +52,7 @@
"# Parameters can be set during the class initialization:\n",
"interface_settings = InterfaceSettings(\n",
" distance_z=3.0, # distance between two planes, in Angstroms\n",
" max_area=400, # maximum area of the generated interfaces, in Angstroms^2\n",
" max_area=50, # maximum area of the generated interfaces, in Angstroms^2\n",
" use_conventional_cell=True, # if True, the surface plane is constructed using miller indices of the conventional cell\n",
")\n",
"\n",
Expand Down Expand Up @@ -349,11 +349,15 @@
"source": [
"from utils.jupyterlite import set_data\n",
"\n",
"names = [f'{interface[\"name\"]}, Interface, Strain:{interface[\"metadata\"][\"interface_properties\"][\"mean_abs_strain\"]*100:.3f}%' for interface in selected_interfaces]\n",
"names = [\n",
" f'{interface[\"name\"]}, Interface, Strain:{interface[\"metadata\"][\"interface_properties\"][\"mean_abs_strain\"]*100:.3f}%'\n",
" for interface in selected_interfaces\n",
"]\n",
"\n",
"named_selected_interfaces = [{\"name\": name, \"interface\": interface} for name, interface in zip(names, selected_interfaces)]\n",
"for name, interface in zip(names, selected_interfaces):\n",
" interface[\"name\"] = name\n",
"\n",
"set_data(\"materials\", named_selected_interfaces)"
"set_data(\"materials\", selected_interfaces)"
]
}
],
Expand Down

0 comments on commit 48ae117

Please sign in to comment.