Skip to content

Commit 68ada5a

Browse files
authored
Merge pull request #216 from Exabyte-io/fix/notebooks
update: fix 3 nbs (SOF-7561)
2 parents c1fccd1 + 4277538 commit 68ada5a

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

other/materials_designer/custom_transformation.ipynb

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": null,
2019
"id": "initial_id",
2120
"metadata": {
2221
"collapsed": true
2322
},
24-
"outputs": [],
2523
"source": [
2624
"import sys\n",
2725
"\n",
@@ -33,7 +31,9 @@
3331
" from mat3ra.utils.jupyterlite.packages import install_packages\n",
3432
"\n",
3533
" await install_packages(\"\")"
36-
]
34+
],
35+
"outputs": [],
36+
"execution_count": null
3737
},
3838
{
3939
"cell_type": "markdown",
@@ -47,7 +47,6 @@
4747
},
4848
{
4949
"cell_type": "code",
50-
"outputs": [],
5150
"source": [
5251
"# Material class to hold structural data\n",
5352
"from mat3ra.made.material import Material\n",
@@ -58,6 +57,7 @@
5857
"collapsed": false
5958
},
6059
"id": "b2fa69b96b195d30",
60+
"outputs": [],
6161
"execution_count": null
6262
},
6363
{
@@ -73,7 +73,6 @@
7373
},
7474
{
7575
"cell_type": "code",
76-
"outputs": [],
7776
"source": [
7877
"from utils.jupyterlite import get_materials\n",
7978
"\n",
@@ -83,6 +82,7 @@
8382
"collapsed": false
8483
},
8584
"id": "54e68de6c6cc3e03",
85+
"outputs": [],
8686
"execution_count": null
8787
},
8888
{
@@ -97,14 +97,12 @@
9797
},
9898
{
9999
"cell_type": "code",
100-
"outputs": [],
101-
"source": [
102-
"new_materials = ..."
103-
],
100+
"source": "new_material = materials[0]",
104101
"metadata": {
105102
"collapsed": false
106103
},
107104
"id": "91069f5712a65dbb",
105+
"outputs": [],
108106
"execution_count": null
109107
},
110108
{
@@ -116,14 +114,14 @@
116114
{
117115
"metadata": {},
118116
"cell_type": "code",
119-
"outputs": [],
120-
"execution_count": null,
121117
"source": [
122118
"from utils.visualize import visualize_materials\n",
123119
"\n",
124-
"visualize_materials(new_materials, viewer=\"wave\")"
120+
"visualize_materials(new_material, viewer=\"wave\")"
125121
],
126-
"id": "1029505318aa3656"
122+
"id": "1029505318aa3656",
123+
"outputs": [],
124+
"execution_count": null
127125
},
128126
{
129127
"cell_type": "markdown",
@@ -135,18 +133,18 @@
135133
},
136134
{
137135
"cell_type": "code",
138-
"outputs": [],
139136
"source": [
140137
"from utils.jupyterlite import set_materials, download_content_to_file\n",
141138
"\n",
142-
"set_materials(new_materials)\n",
139+
"set_materials(new_material)\n",
143140
"# for idx, material in enumerate(new_materials):\n",
144141
"# download_content_to_file(new_materials, f\"new_material_{idx}.json\")"
145142
],
146143
"metadata": {
147144
"collapsed": false
148145
},
149146
"id": "7973f7ee67bdc42a",
147+
"outputs": [],
150148
"execution_count": null
151149
}
152150
],

other/materials_designer/import_materials_from_standata.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
" import micropip\n",
3939
" \n",
4040
" await micropip.install('mat3ra-api-examples', deps=False)\n",
41+
" await micropip.install('mat3ra-utils')\n",
4142
" await micropip.install('mat3ra-standata')\n",
4243
" from utils.jupyterlite import install_packages\n",
4344
" await install_packages(\"\")"

other/materials_designer/passivate_edge.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
{
5050
"metadata": {},
5151
"cell_type": "code",
52-
"outputs": [],
53-
"execution_count": null,
5452
"source": [
5553
"# Enable interactive selection of coordination threshold\n",
5654
"IS_COORDINATION_SELECTION_INTERACTIVE = False\n",
@@ -73,7 +71,9 @@
7371
"SHOW_INTERMEDIATE_STEPS = True\n",
7472
"CELL_REPETITIONS_FOR_VISUALIZATION = [1, 1, 1] # Structure repeat in view"
7573
],
76-
"id": "7e8d8696bb1035e5"
74+
"id": "7e8d8696bb1035e5",
75+
"outputs": [],
76+
"execution_count": null
7777
},
7878
{
7979
"cell_type": "markdown",

0 commit comments

Comments
 (0)