Skip to content

Commit 770b924

Browse files
committed
Update Python_walkthrough.ipynb
1 parent 84814f5 commit 770b924

1 file changed

Lines changed: 70 additions & 34 deletions

File tree

notebooks/Python_walkthrough.ipynb

Lines changed: 70 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,42 @@
17761776
"coordinates.__dict__"
17771777
]
17781778
},
1779+
{
1780+
"cell_type": "markdown",
1781+
"metadata": {},
1782+
"source": [
1783+
"for deleting a field you can use"
1784+
]
1785+
},
1786+
{
1787+
"cell_type": "code",
1788+
"execution_count": 66,
1789+
"metadata": {},
1790+
"outputs": [
1791+
{
1792+
"data": {
1793+
"text/plain": [
1794+
"namespace(x=268623.14, y=4804577.17, elev=251, zone='30T')"
1795+
]
1796+
},
1797+
"execution_count": 66,
1798+
"metadata": {},
1799+
"output_type": "execute_result"
1800+
}
1801+
],
1802+
"source": [
1803+
"del coordinates.info\n",
1804+
"\n",
1805+
"coordinates"
1806+
]
1807+
},
1808+
{
1809+
"cell_type": "markdown",
1810+
"metadata": {},
1811+
"source": [
1812+
"or alternatively ``delattr(coordinates, 'info')``"
1813+
]
1814+
},
17791815
{
17801816
"attachments": {},
17811817
"cell_type": "markdown",
@@ -1799,7 +1835,7 @@
17991835
},
18001836
{
18011837
"cell_type": "code",
1802-
"execution_count": 66,
1838+
"execution_count": 67,
18031839
"metadata": {},
18041840
"outputs": [
18051841
{
@@ -1822,7 +1858,7 @@
18221858
},
18231859
{
18241860
"cell_type": "code",
1825-
"execution_count": 67,
1861+
"execution_count": 68,
18261862
"metadata": {},
18271863
"outputs": [
18281864
{
@@ -1853,7 +1889,7 @@
18531889
},
18541890
{
18551891
"cell_type": "code",
1856-
"execution_count": 68,
1892+
"execution_count": 69,
18571893
"metadata": {},
18581894
"outputs": [
18591895
{
@@ -1862,7 +1898,7 @@
18621898
"[1, 8, 27, 64]"
18631899
]
18641900
},
1865-
"execution_count": 68,
1901+
"execution_count": 69,
18661902
"metadata": {},
18671903
"output_type": "execute_result"
18681904
}
@@ -1888,7 +1924,7 @@
18881924
},
18891925
{
18901926
"cell_type": "code",
1891-
"execution_count": 69,
1927+
"execution_count": 70,
18921928
"metadata": {},
18931929
"outputs": [
18941930
{
@@ -1909,7 +1945,7 @@
19091945
},
19101946
{
19111947
"cell_type": "code",
1912-
"execution_count": 70,
1948+
"execution_count": 71,
19131949
"metadata": {},
19141950
"outputs": [
19151951
{
@@ -1918,7 +1954,7 @@
19181954
"[1, 8, 27, 64]"
19191955
]
19201956
},
1921-
"execution_count": 70,
1957+
"execution_count": 71,
19221958
"metadata": {},
19231959
"output_type": "execute_result"
19241960
}
@@ -1947,7 +1983,7 @@
19471983
},
19481984
{
19491985
"cell_type": "code",
1950-
"execution_count": 71,
1986+
"execution_count": 72,
19511987
"metadata": {},
19521988
"outputs": [
19531989
{
@@ -1986,7 +2022,7 @@
19862022
},
19872023
{
19882024
"cell_type": "code",
1989-
"execution_count": 72,
2025+
"execution_count": 73,
19902026
"metadata": {},
19912027
"outputs": [
19922028
{
@@ -2036,7 +2072,7 @@
20362072
},
20372073
{
20382074
"cell_type": "code",
2039-
"execution_count": 73,
2075+
"execution_count": 74,
20402076
"metadata": {},
20412077
"outputs": [
20422078
{
@@ -2045,7 +2081,7 @@
20452081
"'2 is the smallest'"
20462082
]
20472083
},
2048-
"execution_count": 73,
2084+
"execution_count": 74,
20492085
"metadata": {},
20502086
"output_type": "execute_result"
20512087
}
@@ -2073,7 +2109,7 @@
20732109
},
20742110
{
20752111
"cell_type": "code",
2076-
"execution_count": 74,
2112+
"execution_count": 75,
20772113
"metadata": {},
20782114
"outputs": [],
20792115
"source": [
@@ -2094,7 +2130,7 @@
20942130
},
20952131
{
20962132
"cell_type": "code",
2097-
"execution_count": 75,
2133+
"execution_count": 76,
20982134
"metadata": {},
20992135
"outputs": [
21002136
{
@@ -2120,7 +2156,7 @@
21202156
},
21212157
{
21222158
"cell_type": "code",
2123-
"execution_count": 76,
2159+
"execution_count": 77,
21242160
"metadata": {},
21252161
"outputs": [
21262162
{
@@ -2129,7 +2165,7 @@
21292165
"True"
21302166
]
21312167
},
2132-
"execution_count": 76,
2168+
"execution_count": 77,
21332169
"metadata": {},
21342170
"output_type": "execute_result"
21352171
}
@@ -2140,7 +2176,7 @@
21402176
},
21412177
{
21422178
"cell_type": "code",
2143-
"execution_count": 77,
2179+
"execution_count": 78,
21442180
"metadata": {},
21452181
"outputs": [],
21462182
"source": [
@@ -2163,7 +2199,7 @@
21632199
},
21642200
{
21652201
"cell_type": "code",
2166-
"execution_count": 78,
2202+
"execution_count": 79,
21672203
"metadata": {},
21682204
"outputs": [],
21692205
"source": [
@@ -2173,7 +2209,7 @@
21732209
},
21742210
{
21752211
"cell_type": "code",
2176-
"execution_count": 79,
2212+
"execution_count": 80,
21772213
"metadata": {},
21782214
"outputs": [
21792215
{
@@ -2182,7 +2218,7 @@
21822218
"True"
21832219
]
21842220
},
2185-
"execution_count": 79,
2221+
"execution_count": 80,
21862222
"metadata": {},
21872223
"output_type": "execute_result"
21882224
}
@@ -2193,7 +2229,7 @@
21932229
},
21942230
{
21952231
"cell_type": "code",
2196-
"execution_count": 80,
2232+
"execution_count": 81,
21972233
"metadata": {},
21982234
"outputs": [
21992235
{
@@ -2202,7 +2238,7 @@
22022238
"False"
22032239
]
22042240
},
2205-
"execution_count": 80,
2241+
"execution_count": 81,
22062242
"metadata": {},
22072243
"output_type": "execute_result"
22082244
}
@@ -2213,7 +2249,7 @@
22132249
},
22142250
{
22152251
"cell_type": "code",
2216-
"execution_count": 81,
2252+
"execution_count": 82,
22172253
"metadata": {},
22182254
"outputs": [
22192255
{
@@ -2222,7 +2258,7 @@
22222258
"False"
22232259
]
22242260
},
2225-
"execution_count": 81,
2261+
"execution_count": 82,
22262262
"metadata": {},
22272263
"output_type": "execute_result"
22282264
}
@@ -2233,7 +2269,7 @@
22332269
},
22342270
{
22352271
"cell_type": "code",
2236-
"execution_count": 82,
2272+
"execution_count": 83,
22372273
"metadata": {},
22382274
"outputs": [
22392275
{
@@ -2242,7 +2278,7 @@
22422278
"True"
22432279
]
22442280
},
2245-
"execution_count": 82,
2281+
"execution_count": 83,
22462282
"metadata": {},
22472283
"output_type": "execute_result"
22482284
}
@@ -2254,7 +2290,7 @@
22542290
},
22552291
{
22562292
"cell_type": "code",
2257-
"execution_count": 83,
2293+
"execution_count": 84,
22582294
"metadata": {},
22592295
"outputs": [
22602296
{
@@ -2263,7 +2299,7 @@
22632299
"True"
22642300
]
22652301
},
2266-
"execution_count": 83,
2302+
"execution_count": 84,
22672303
"metadata": {},
22682304
"output_type": "execute_result"
22692305
}
@@ -2285,7 +2321,7 @@
22852321
},
22862322
{
22872323
"cell_type": "code",
2288-
"execution_count": 84,
2324+
"execution_count": 85,
22892325
"metadata": {},
22902326
"outputs": [
22912327
{
@@ -2294,7 +2330,7 @@
22942330
"(3.0, 1.5)"
22952331
]
22962332
},
2297-
"execution_count": 84,
2333+
"execution_count": 85,
22982334
"metadata": {},
22992335
"output_type": "execute_result"
23002336
}
@@ -2328,7 +2364,7 @@
23282364
},
23292365
{
23302366
"cell_type": "code",
2331-
"execution_count": 85,
2367+
"execution_count": 86,
23322368
"metadata": {},
23332369
"outputs": [
23342370
{
@@ -2366,15 +2402,15 @@
23662402
},
23672403
{
23682404
"cell_type": "code",
2369-
"execution_count": 86,
2405+
"execution_count": 87,
23702406
"metadata": {},
23712407
"outputs": [
23722408
{
23732409
"name": "stdout",
23742410
"output_type": "stream",
23752411
"text": [
2376-
"Notebook tested in 2024-02-20 using:\n",
2377-
"Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:16:22) [MSC v.1916 64 bit (AMD64)]\n"
2412+
"Notebook tested in 2024-04-02 using:\n",
2413+
"Python 3.11.8 | packaged by Anaconda, Inc. | (main, Feb 26 2024, 21:34:05) [MSC v.1916 64 bit (AMD64)]\n"
23782414
]
23792415
}
23802416
],
@@ -2407,7 +2443,7 @@
24072443
"name": "python",
24082444
"nbconvert_exporter": "python",
24092445
"pygments_lexer": "ipython3",
2410-
"version": "3.11.5"
2446+
"version": "3.11.8"
24112447
}
24122448
},
24132449
"nbformat": 4,

0 commit comments

Comments
 (0)