Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtucker committed Aug 23, 2023
1 parent 40362d6 commit 71d3dde
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@
"outputs": [],
"source": [
"import numpy as np\n",
"\n",
"from landlab import HexModelGrid, imshow_grid\n",
"from landlab.components import FlowAccumulator, StreamPowerEroder, TaylorNonLinearDiffuser\n",
"from landlab.components import (\n",
" FlowAccumulator,\n",
" StreamPowerEroder,\n",
" TaylorNonLinearDiffuser,\n",
")\n",
"from landlab.io.obj import write_obj"
]
},
Expand Down Expand Up @@ -113,7 +118,9 @@
"outputs": [],
"source": [
"grid = HexModelGrid((nrows, ncols), spacing=node_spacing, node_layout=\"rect\")\n",
"grid.dx = grid.spacing # temporary hack to enable TaylorNonLinearDiffuser to work with hex grid\n",
"grid.dx = (\n",
" grid.spacing\n",
") # temporary hack to enable TaylorNonLinearDiffuser to work with hex grid\n",
"elev = grid.add_zeros(\"topographic__elevation\", at=\"node\")\n",
"elev[grid.core_nodes] = np.random.rand(grid.number_of_core_nodes)\n",
"K_sp = K_sp_mean + K_sp_std * np.random.randn(grid.number_of_nodes)\n",
Expand Down

0 comments on commit 71d3dde

Please sign in to comment.