Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 11, 2024
1 parent dfea69c commit 9fb9698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@
"outputs": [],
"source": [
"# update function\n",
"\n",
"\n",
"def update_plot(frame_number, MWR, plot):\n",
" mg.at_node[\"dem_dif_m\"] = (\n",
" MWR.saver.runout_evo_maps[0][frame_number]\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"from landlab import RasterModelGrid\n",
"from landlab.components import RiverFlowDynamics # Note: Using updated CamelCase naming\n",
"from landlab.io import read_esri_ascii\n",
Expand Down Expand Up @@ -312,7 +313,7 @@
"outputs": [],
"source": [
"plt.figure(figsize=(12, 4))\n",
"plt.plot(flow_depth, label='Simulated')\n",
"plt.plot(flow_depth, label=\"Simulated\")\n",
"plt.title(\"Flow Depth Along Channel Centerline\")\n",
"plt.xlabel(\"Distance (cells)\")\n",
"plt.ylabel(\"Depth (m)\")\n",
Expand All @@ -338,7 +339,7 @@
"flow_velocity = grid[\"link\"][\"surface_water__velocity\"][linksAtCenter]\n",
"\n",
"plt.figure(figsize=(12, 4))\n",
"plt.plot(flow_velocity, label='Simulated')\n",
"plt.plot(flow_velocity, label=\"Simulated\")\n",
"plt.title(\"Flow Velocity Along Channel Centerline\")\n",
"plt.xlabel(\"Distance (cells)\")\n",
"plt.ylabel(\"Velocity (m/s)\")\n",
Expand Down

0 comments on commit 9fb9698

Please sign in to comment.