Skip to content

Commit

Permalink
remove more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 7, 2023
1 parent 3c4b945 commit 3dc4c70
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 148 deletions.
2 changes: 1 addition & 1 deletion lessons/python/01-numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"topo = np.loadtxt(\"data/topo.asc\", delimiter=\",\")\n",
"\n",
Expand Down
7 changes: 0 additions & 7 deletions lessons/python/02-lists.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@
"~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
18 changes: 2 additions & 16 deletions lessons/python/03-scripts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"%matplotlib inline\n",
"\n",
Expand All @@ -49,13 +49,6 @@
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -146,8 +139,8 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"\n",
"# get_ipython().magic(u'matplotlib inline')\n",
"\n",
Expand Down Expand Up @@ -243,13 +236,6 @@
"## Takehome (2)\n",
"Try this on the terminal in the JupyterHub. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
7 changes: 4 additions & 3 deletions lessons/python/05 Models Part 1 (Diffusion).ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import random\n",
"import time"
"import time\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np"
]
},
{
Expand Down
35 changes: 0 additions & 35 deletions lessons/python/06 Models Part 2 (Advection).ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,41 +178,20 @@
"~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, set the wind speed $v$ to -10 m/s and calculate the advection equation for negative velocities using Eq. 4. Copy paste your previous solution and add the negative component to it. Do not forget to reset the Temperature array before you start. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Can you find an analytical solution for this problem? Implement eq. 2. You need just one line of code (HINT use the `np.mod` statement). Plot and compare with the numerical solution. What is going on here. What can we do to resolve this issue? "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -241,13 +220,6 @@
"Enter the parameter values and initialize model variables: "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -287,13 +259,6 @@
"~~~\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
67 changes: 2 additions & 65 deletions lessons/python/07-func.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy\n",
"import matplotlib.pyplot"
"import matplotlib.pyplot\n",
"import numpy"
]
},
{
Expand Down Expand Up @@ -516,13 +516,6 @@
" ~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -671,13 +664,6 @@
" ~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -712,13 +698,6 @@
" ~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -740,13 +719,6 @@
" ~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -759,13 +731,6 @@
" then the replacement for a value $v$ should be $(v-L) / (H-L)$.)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -780,13 +745,6 @@
" "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -799,13 +757,6 @@
" do the two functions always behave the same way?"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -829,20 +780,6 @@
" print(k)\n",
" ~~~"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
14 changes: 0 additions & 14 deletions lessons/python/08-OO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@
"# Document self"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -163,13 +156,6 @@
"source": [
"# check the type of v3"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
7 changes: 0 additions & 7 deletions lessons/python/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,6 @@
"* [Reference](reference.html)\n",
"* [csdms-software-carpentry](https://github.com/csdms/csdms-carpentry)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 3dc4c70

Please sign in to comment.