Skip to content

Commit

Permalink
add ellipses in the for loop of a hint cell
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 7, 2023
1 parent 6e80bc1 commit d02da96
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lessons/landlab/landlab/create_a_component-solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"grid.status_at_node[grid.nodes_at_top_edge] = NodeStatus.CLOSED\n",
"grid.status_at_node[grid.nodes_at_bottom_edge] = NodeStatus.CLOSED\n",
"\n",
"grid.imshow(\"node\", z)"
"grid.imshow(z)"
]
},
{
Expand Down Expand Up @@ -194,7 +194,7 @@
"# Type your code here: calculate time step\n",
"\n",
"for _ in trange(1000):\n",
" # Type your code here: calculate diffusion and update *z*\n",
" ... # Type your code here: calculate diffusion and update *z*\n",
"\n",
"grid.imshow(z)"
]
Expand All @@ -216,7 +216,7 @@
"for _ in trange(1000):\n",
" z += calc_diffusion_rate(grid, z, diffusion_coefficient=diffusion_coefficient) * dt\n",
"\n",
"grid.imshow(\"node\", z)"
"grid.imshow(z)"
]
},
{
Expand Down Expand Up @@ -296,7 +296,7 @@
"grid.status_at_node[grid.nodes_at_top_edge] = NodeStatus.FIXED_VALUE\n",
"grid.status_at_node[grid.nodes_at_bottom_edge] = NodeStatus.CLOSED\n",
"\n",
"grid.imshow(\"node\", z)"
"grid.imshow(z)"
]
},
{
Expand Down Expand Up @@ -335,7 +335,7 @@
"for _ in trange(10000):\n",
" z += diffuse.calc_rate(z) * dt\n",
"\n",
"grid.imshow(\"node\", z)"
"grid.imshow(z)"
]
},
{
Expand Down Expand Up @@ -509,7 +509,7 @@
"grid.status_at_node[grid.nodes_at_top_edge] = NodeStatus.CLOSED\n",
"grid.status_at_node[grid.nodes_at_bottom_edge] = NodeStatus.CLOSED\n",
"\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
},
{
Expand Down Expand Up @@ -544,7 +544,7 @@
"diffuse = LandscapeDiffuser(grid, diffusion_coefficient=0.5)\n",
"for _ in trange(1000):\n",
" diffuse.run_one_step(dt=0.2)\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
},
{
Expand Down Expand Up @@ -621,7 +621,7 @@
"grid.status_at_node[grid.nodes_at_top_edge] = NodeStatus.CLOSED\n",
"grid.status_at_node[grid.nodes_at_bottom_edge] = NodeStatus.CLOSED\n",
"\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
},
{
Expand Down Expand Up @@ -659,7 +659,7 @@
"for _ in trange(20):\n",
" uplift.run_one_step(dt=dt)\n",
"\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
},
{
Expand Down Expand Up @@ -703,7 +703,7 @@
" uplift.run_one_step(dt=dt)\n",
" diffuse.run_one_step(dt=dt)\n",
"\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
},
{
Expand Down Expand Up @@ -769,7 +769,7 @@
"grid.status_at_node[grid.nodes_at_top_edge] = NodeStatus.FIXED_VALUE\n",
"grid.status_at_node[grid.nodes_at_bottom_edge] = NodeStatus.FIXED_VALUE\n",
"\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
},
{
Expand Down Expand Up @@ -851,7 +851,7 @@
" accumulate.run_one_step()\n",
" erode.run_one_step(dt=dt)\n",
"\n",
"grid.imshow(\"node\", grid.at_node[\"topographic__elevation\"])"
"grid.imshow(grid.at_node[\"topographic__elevation\"])"
]
}
],
Expand Down

0 comments on commit d02da96

Please sign in to comment.