Skip to content

Commit

Permalink
chore: description adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed May 31, 2024
1 parent 411fb11 commit 1eeb760
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"\n",
"1. Make sure to select Input Materials\n",
"2. Set notebook parameters\n",
"2. Create slab configurations, view possible terminations and select the termination pair for the interface\n",
"3. Create the interface with no strain matching based on the selected configurations\n",
"4. Visualize the interface\n",
"5. Pass the interface to the outside runtime\n"
"3. Create slab configurations for film and substrate from bulk materials and slab parameters\n",
"4. View possible slab terminations and select the termination pair for the interface\n",
"5. Create interface by wrapping film slab cell into the substrate slab cell\n",
"6. Visualize the interface\n",
"7. Pass the interface to the outside runtime\n"
]
},
{
Expand All @@ -35,12 +36,11 @@
"source": [
"# Enable interactive selection of terminations via UI prompt\n",
"IS_TERMINATIONS_SELECTION_INTERACTIVE = False \n",
"# Enable scaling of the film slab to match the substrate lattice\n",
"# Enable scaling of the film slab atomic coordinates to match the substrate lattice (preserve coordinates in crystal units).\n",
"ENABLE_FILM_SCALING = True"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand Down Expand Up @@ -68,8 +68,7 @@
" await install_packages(\"create_interface_with_min_strain_zsl.ipynb\", \"../../config.yml\")"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand Down Expand Up @@ -97,8 +96,7 @@
"film = materials[1]"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand All @@ -119,8 +117,7 @@
"visualize([substrate, film], repetitions=[3, 3, 1], rotation=\"0x\")"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand Down Expand Up @@ -174,8 +171,7 @@
" print(f\"{idx}: {term}\")"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand All @@ -197,8 +193,7 @@
"visualize([{\"material\":substrate_slab_configuration.get_slab(termination=termination), \"title\":f\"Termination: {termination}\"} for termination in substrate_slab_terminations], repetitions=[3, 3, 1], rotation=\"-90x\")"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand Down Expand Up @@ -231,8 +226,7 @@
" termination_pair = ui_prompt_select_array_element_by_index(termination_pairs, element_name=\"film/substrate termination pair\")"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand All @@ -248,9 +242,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"is_executing": true
},
"metadata": {},
"outputs": [],
"source": [
"from mat3ra.made.tools.build.interface import InterfaceConfiguration\n",
Expand Down Expand Up @@ -280,8 +272,7 @@
" interface = builder.get_material(configuration=interface_configuration)"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
Expand All @@ -302,31 +293,25 @@
"visualize([interface], repetitions=[3, 3, 1], rotation=\"-90x\")"
],
"metadata": {
"collapsed": false,
"is_executing": true
"collapsed": false
},
"execution_count": null
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 4. Pass data to the outside runtime\n",
"Enrich the interface names with the strain values and pass them to the application runtime."
"## 4. Pass data to the outside runtime"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"is_executing": true
},
"metadata": {},
"outputs": [],
"source": [
"from utils.jupyterlite import set_data\n",
"\n",
"if \"Interface\" not in interface.name:\n",
" interface.name = f'{interface.name}, Interface'\n",
"set_data(\"materials\", [interface.to_json()])"
]
}
Expand Down
Empty file added package.json
Empty file.

0 comments on commit 1eeb760

Please sign in to comment.