Skip to content

Commit

Permalink
remove notebook lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 7, 2023
1 parent 0d12844 commit 6197062
Show file tree
Hide file tree
Showing 26 changed files with 94 additions and 382 deletions.
7 changes: 0 additions & 7 deletions lessons/bmi/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@
" * [Python BMI specification](https://github.com/csdms/bmi-python)\n",
" * [Python BMI example](https://github.com/csdms/bmi-example-python)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
74 changes: 2 additions & 72 deletions lessons/landlab/landlab-terrainbento/Welcome_to_TerrainBento.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
"metadata": {},
"outputs": [],
"source": [
"from terrainbento import Basic\n",
"import warnings\n",
"\n",
"# Figure properties\n",
"from matplotlib import pyplot as plt\n",
"import warnings\n",
"from terrainbento import Basic\n",
"\n",
"warnings.filterwarnings(\"ignore\")\n",
"%matplotlib inline"
Expand Down Expand Up @@ -82,13 +82,6 @@
"We need a [Clock](https://terrainbento.readthedocs.io/en/latest/source/terrainbento.clock.html) instance. The terrainbento Clock controls the timing of model runs.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -100,13 +93,6 @@
" * a timestep of 100 years"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -160,13 +146,6 @@
"Check all the fields associated to the grid"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -175,27 +154,13 @@
"the model using the default Basic model constructor (the `__init__` method). "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Check all the fields associated to the grid"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -205,13 +170,6 @@
"Run the model as specified:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -220,13 +178,6 @@
"Make a plot of the initial and final topography"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -241,27 +192,13 @@
"* Plot initial and final DEM"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Looks a little strange... why? How can we change this? "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -326,13 +263,6 @@
"* an uplift rate of 0.002 m/year (sea level stays fixed at ca. 0m) "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"metadata": {},
"outputs": [],
"source": [
"from terrainbento import Basic\n",
"\n",
"# Figure properties\n",
"import warnings\n",
"\n",
"from terrainbento import Basic\n",
"\n",
"warnings.filterwarnings(\"ignore\")\n",
"%matplotlib inline"
]
Expand Down Expand Up @@ -253,8 +253,7 @@
"source": [
"from landlab import RasterModelGrid\n",
"from landlab.values import random\n",
"from terrainbento import Clock\n",
"from terrainbento import Basic\n",
"from terrainbento import Basic, Clock\n",
"\n",
"grid2 = RasterModelGrid((30, 20), 100)\n",
"random(grid2, \"topographic__elevation\")\n",
Expand Down Expand Up @@ -362,8 +361,7 @@
"source": [
"from landlab import RasterModelGrid\n",
"from landlab.values import random\n",
"from terrainbento import Clock\n",
"from terrainbento import Basic\n",
"from terrainbento import Basic, Clock\n",
"\n",
"grid2 = RasterModelGrid((80, 50), 100)\n",
"random(grid2, \"topographic__elevation\")\n",
Expand Down Expand Up @@ -423,13 +421,6 @@
"## Terrainnbento challenge\n",
"- [Make your own gif](coupled_process_elements/Challenge.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
"- make a GIF of both LEMs and post your achievement on Twitter (if you like to, @CSDMS) \n",
"- Make a plot of the average elevation through time"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@
"outputs": [],
"source": [
"# import required modules\n",
"from terrainbento import BasicCh\n",
"\n",
"import os\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib\n",
"\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"from landlab import imshow_grid\n",
"from landlab.io.netcdf import write_netcdf\n",
"from terrainbento import BasicCh\n",
"\n",
"np.random.seed(42)\n",
"\n",
Expand Down Expand Up @@ -116,7 +115,7 @@
"outputs": [],
"source": [
"# we can use an output writer to run until the model reaches steady state.\n",
"class run_to_steady(object):\n",
"class run_to_steady:\n",
" def __init__(self, model):\n",
" self.model = model\n",
" self.last_z = self.model.z.copy()\n",
Expand Down Expand Up @@ -232,13 +231,6 @@
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -273,13 +265,6 @@
" \n",
" 6) [RealDEM](model_basic_realDEM.ipynb) Run the basic terrainbento model with a real DEM as initial condition. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,17 @@
"source": [
"# import required modules\n",
"import os\n",
"import numpy as np\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"matplotlib.rcParams[\"font.size\"] = 20\n",
"matplotlib.rcParams[\"pdf.fonttype\"] = 42\n",
"%matplotlib inline\n",
"\n",
"from landlab import imshow_grid\n",
"from landlab.io.netcdf import write_netcdf\n",
"\n",
"from terrainbento import BasicCh\n",
"\n",
"np.random.seed(42)"
Expand Down Expand Up @@ -116,7 +115,7 @@
"outputs": [],
"source": [
"# we can use an output writer to run until the model reaches steady state.\n",
"class run_to_steady(object):\n",
"class run_to_steady:\n",
" def __init__(self, model):\n",
" self.model = model\n",
" self.last_z = self.model.z.copy()\n",
Expand Down Expand Up @@ -224,13 +223,6 @@
"imshow_grid(model.grid, \"topographic__elevation\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,15 @@
"source": [
"# import required modules\n",
"\n",
"from terrainbento import BasicRt, Clock, NotCoreNodeBaselevelHandler\n",
"from landlab.io.netcdf import write_netcdf\n",
"from landlab.values import random\n",
"\n",
"import os\n",
"import numpy as np\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib\n",
"\n",
"from landlab import imshow_grid, RasterModelGrid\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"from landlab import RasterModelGrid, imshow_grid\n",
"from landlab.io.netcdf import write_netcdf\n",
"from landlab.values import random\n",
"from terrainbento import BasicRt, Clock, NotCoreNodeBaselevelHandler\n",
"\n",
"np.random.seed(4897)\n",
"\n",
Expand Down Expand Up @@ -96,7 +94,7 @@
"outputs": [],
"source": [
"# we can use an output writer to run until the model reaches steady state.\n",
"class run_to_steady(object):\n",
"class run_to_steady:\n",
" def __init__(self, model):\n",
" self.model = model\n",
" self.last_z = self.model.z.copy()\n",
Expand Down Expand Up @@ -259,13 +257,6 @@
"Create a LEM with a hard bedrock layer underlying a soft cover in the eastern side of the domain or (extra challenge) as a square in the middle of the domain."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -298,13 +289,6 @@
" \n",
" 6) [RealDEM](model_basic_realDEM.ipynb) Run the basic terrainbento model with a real DEM as initial condition. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit 6197062

Please sign in to comment.