Skip to content

Commit 6220b13

Browse files
committed
removed testing variable names and added max_items to search
1 parent d77612f commit 6220b13

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

guide/04-feature-data-and-analysis/appending-features.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
},
6767
{
6868
"cell_type": "code",
69-
"execution_count": 1,
69+
"execution_count": 2,
7070
"metadata": {},
7171
"outputs": [],
7272
"source": [
@@ -136,7 +136,7 @@
136136
},
137137
{
138138
"cell_type": "code",
139-
"execution_count": 4,
139+
"execution_count": 5,
140140
"metadata": {},
141141
"outputs": [
142142
{
@@ -163,14 +163,14 @@
163163
"<Item title:\"Downingtown_PA_Parcels\" type:File Geodatabase owner:api_data_owner>"
164164
]
165165
},
166-
"execution_count": 4,
166+
"execution_count": 5,
167167
"metadata": {},
168168
"output_type": "execute_result"
169169
}
170170
],
171171
"source": [
172172
"downingtown_parcels_fgdb = [d \n",
173-
" for d in gis.content.search(\"*\") \n",
173+
" for d in gis.content.search(\"*\", max_items=50) \n",
174174
" if d.type == \"File Geodatabase\" \n",
175175
" and \"Downingtown\" in d.title][0]\n",
176176
"downingtown_parcels_fgdb"
@@ -2395,12 +2395,12 @@
23952395
"outputs": [],
23962396
"source": [
23972397
"# Create a working directory\n",
2398-
"if not os.path.exists(os.path.join(cwd, \"sierra_leone\")):\n",
2399-
" os.mkdir(os.path.join(cwd, \"sierra_leone\"))\n",
2398+
"if not os.path.exists(os.path.join(wd, \"sierra_leone\")):\n",
2399+
" os.mkdir(os.path.join(wd, \"sierra_leone\"))\n",
24002400
"\n",
24012401
"# Assign a variable to the full path of the new directory\n",
2402-
"wd = [os.path.join(guide_dir, dir) \n",
2403-
" for dir in os.listdir(guide_dir) \n",
2402+
"wd = [os.path.join(wd, dir) \n",
2403+
" for dir in os.listdir(wd) \n",
24042404
" if 'sierra_leone' in dir][0]"
24052405
]
24062406
},

0 commit comments

Comments
 (0)