Skip to content

Commit 29f9984

Browse files
committed
Fix f-string syntax and remove crash in thermal convection tutorial
- Fixed f-string: use single quotes for 'Myr' inside double-quoted f-string - Commented out intentional 0/0 crash so tutorial runs to completion Fixes #38 Underworld development team with AI support from Claude Code
1 parent 5f49576 commit 29f9984

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/beginner/tutorials/15-Thermal-convection-with-units.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
"outputs": [],
410410
"source": [
411411
"delta_t = adv_diff.estimate_dt()\n",
412-
"delta_t.to(\"Myr\")"
412+
"delta_t.to('Myr')"
413413
]
414414
},
415415
{
@@ -432,7 +432,7 @@
432432
"# Null space ?\n",
433433
"\n",
434434
"for step in range(0, max_steps):\n",
435-
" print(f\"Timestep: {timestep}, dt: {delta_t.to(\"Myr\")}, time: {elapsed_time}\")\n",
435+
" print(f\"Timestep: {timestep}, dt: {delta_t.to('Myr')}, time: {elapsed_time}\")\n",
436436
" \n",
437437
" stokes.solve(zero_init_guess=True)\n",
438438
" delta_t = 2 * adv_diff.estimate_dt()\n",
@@ -450,7 +450,7 @@
450450
"metadata": {},
451451
"outputs": [],
452452
"source": [
453-
"0/0"
453+
"# 0/0 # Intentional crash removed"
454454
]
455455
},
456456
{

0 commit comments

Comments
 (0)