Skip to content

Commit 477c9c4

Browse files
committed
fix sample code
1 parent 292b130 commit 477c9c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/1_basic_plot_making/4_properties_of_materials.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@
225225
"outputs": [],
226226
"source": [
227227
"m_clear_glass[\"VarFloat3\"][\"refraction_index\"] = [1.38, 1.4, 1.43]\n",
228-
"optix.update_material(\"glass\", m_clear_glass, refresh=True)\n",
228+
"optix.update_material(\"glass\", m_clear_glass)\n",
229229
"\n",
230230
"m_air[\"VarFloat3\"][\"refraction_index\"] = [1.38, 1.4, 1.43] # same as in glass, so particles nested in the sphere are not visible\n",
231-
"optix.update_material(\"air\", m_clear_glass, refresh=True)"
231+
"optix.update_material(\"air\", m_air, refresh=True)"
232232
]
233233
},
234234
{
@@ -245,7 +245,7 @@
245245
"outputs": [],
246246
"source": [
247247
"m_air[\"VarFloat3\"][\"refraction_index\"] = [1, 1, 1]\n",
248-
"optix.update_material(\"air\", m_clear_glass, refresh=True)"
248+
"optix.update_material(\"air\", m_air, refresh=True)"
249249
]
250250
},
251251
{
@@ -385,7 +385,7 @@
385385
"name": "python",
386386
"nbconvert_exporter": "python",
387387
"pygments_lexer": "ipython3",
388-
"version": "3.7.4"
388+
"version": "3.6.9"
389389
}
390390
},
391391
"nbformat": 4,

0 commit comments

Comments
 (0)