|
66 | 66 | }, |
67 | 67 | { |
68 | 68 | "cell_type": "code", |
69 | | - "execution_count": 1, |
| 69 | + "execution_count": 2, |
70 | 70 | "metadata": {}, |
71 | 71 | "outputs": [], |
72 | 72 | "source": [ |
|
136 | 136 | }, |
137 | 137 | { |
138 | 138 | "cell_type": "code", |
139 | | - "execution_count": 4, |
| 139 | + "execution_count": 5, |
140 | 140 | "metadata": {}, |
141 | 141 | "outputs": [ |
142 | 142 | { |
|
163 | 163 | "<Item title:\"Downingtown_PA_Parcels\" type:File Geodatabase owner:api_data_owner>" |
164 | 164 | ] |
165 | 165 | }, |
166 | | - "execution_count": 4, |
| 166 | + "execution_count": 5, |
167 | 167 | "metadata": {}, |
168 | 168 | "output_type": "execute_result" |
169 | 169 | } |
170 | 170 | ], |
171 | 171 | "source": [ |
172 | 172 | "downingtown_parcels_fgdb = [d \n", |
173 | | - " for d in gis.content.search(\"*\") \n", |
| 173 | + " for d in gis.content.search(\"*\", max_items=50) \n", |
174 | 174 | " if d.type == \"File Geodatabase\" \n", |
175 | 175 | " and \"Downingtown\" in d.title][0]\n", |
176 | 176 | "downingtown_parcels_fgdb" |
|
2395 | 2395 | "outputs": [], |
2396 | 2396 | "source": [ |
2397 | 2397 | "# 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", |
2400 | 2400 | "\n", |
2401 | 2401 | "# 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", |
2404 | 2404 | " if 'sierra_leone' in dir][0]" |
2405 | 2405 | ] |
2406 | 2406 | }, |
|
0 commit comments