Skip to content

Commit

Permalink
Update Python_walkthrough.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoalopez committed Apr 2, 2024
1 parent 84814f5 commit 770b924
Showing 1 changed file with 70 additions and 34 deletions.
104 changes: 70 additions & 34 deletions notebooks/Python_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,42 @@
"coordinates.__dict__"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"for deleting a field you can use"
]
},
{
"cell_type": "code",
"execution_count": 66,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"namespace(x=268623.14, y=4804577.17, elev=251, zone='30T')"
]
},
"execution_count": 66,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"del coordinates.info\n",
"\n",
"coordinates"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"or alternatively ``delattr(coordinates, 'info')``"
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand All @@ -1799,7 +1835,7 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": 67,
"metadata": {},
"outputs": [
{
Expand All @@ -1822,7 +1858,7 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": 68,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1853,7 +1889,7 @@
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": 69,
"metadata": {},
"outputs": [
{
Expand All @@ -1862,7 +1898,7 @@
"[1, 8, 27, 64]"
]
},
"execution_count": 68,
"execution_count": 69,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1888,7 +1924,7 @@
},
{
"cell_type": "code",
"execution_count": 69,
"execution_count": 70,
"metadata": {},
"outputs": [
{
Expand All @@ -1909,7 +1945,7 @@
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": 71,
"metadata": {},
"outputs": [
{
Expand All @@ -1918,7 +1954,7 @@
"[1, 8, 27, 64]"
]
},
"execution_count": 70,
"execution_count": 71,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1947,7 +1983,7 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": 72,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1986,7 +2022,7 @@
},
{
"cell_type": "code",
"execution_count": 72,
"execution_count": 73,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2036,7 +2072,7 @@
},
{
"cell_type": "code",
"execution_count": 73,
"execution_count": 74,
"metadata": {},
"outputs": [
{
Expand All @@ -2045,7 +2081,7 @@
"'2 is the smallest'"
]
},
"execution_count": 73,
"execution_count": 74,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -2073,7 +2109,7 @@
},
{
"cell_type": "code",
"execution_count": 74,
"execution_count": 75,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2094,7 +2130,7 @@
},
{
"cell_type": "code",
"execution_count": 75,
"execution_count": 76,
"metadata": {},
"outputs": [
{
Expand All @@ -2120,7 +2156,7 @@
},
{
"cell_type": "code",
"execution_count": 76,
"execution_count": 77,
"metadata": {},
"outputs": [
{
Expand All @@ -2129,7 +2165,7 @@
"True"
]
},
"execution_count": 76,
"execution_count": 77,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2140,7 +2176,7 @@
},
{
"cell_type": "code",
"execution_count": 77,
"execution_count": 78,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2163,7 +2199,7 @@
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": 79,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2173,7 +2209,7 @@
},
{
"cell_type": "code",
"execution_count": 79,
"execution_count": 80,
"metadata": {},
"outputs": [
{
Expand All @@ -2182,7 +2218,7 @@
"True"
]
},
"execution_count": 79,
"execution_count": 80,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2193,7 +2229,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": 81,
"metadata": {},
"outputs": [
{
Expand All @@ -2202,7 +2238,7 @@
"False"
]
},
"execution_count": 80,
"execution_count": 81,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2213,7 +2249,7 @@
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 82,
"metadata": {},
"outputs": [
{
Expand All @@ -2222,7 +2258,7 @@
"False"
]
},
"execution_count": 81,
"execution_count": 82,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2233,7 +2269,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 83,
"metadata": {},
"outputs": [
{
Expand All @@ -2242,7 +2278,7 @@
"True"
]
},
"execution_count": 82,
"execution_count": 83,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2254,7 +2290,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 84,
"metadata": {},
"outputs": [
{
Expand All @@ -2263,7 +2299,7 @@
"True"
]
},
"execution_count": 83,
"execution_count": 84,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2285,7 +2321,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 85,
"metadata": {},
"outputs": [
{
Expand All @@ -2294,7 +2330,7 @@
"(3.0, 1.5)"
]
},
"execution_count": 84,
"execution_count": 85,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -2328,7 +2364,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 86,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2366,15 +2402,15 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": 87,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Notebook tested in 2024-02-20 using:\n",
"Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:16:22) [MSC v.1916 64 bit (AMD64)]\n"
"Notebook tested in 2024-04-02 using:\n",
"Python 3.11.8 | packaged by Anaconda, Inc. | (main, Feb 26 2024, 21:34:05) [MSC v.1916 64 bit (AMD64)]\n"
]
}
],
Expand Down Expand Up @@ -2407,7 +2443,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 770b924

Please sign in to comment.