We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a332e commit 88e87cdCopy full SHA for 88e87cd
earthpy/io.py
@@ -177,13 +177,13 @@ def get_data(self,
177
)
178
urls = self._get_figshare_download_urls(article_id)
179
this_data = []
180
- for name, url in urls.items():
+ for fname, url in urls.items():
181
# Determine filetype using file name extension
182
file_type = "file"
183
for ext in ALLOWED_FILE_TYPES:
184
if fname.endswith(ext):
185
file_type = ext
186
- this_data.append((url, name, file_type))
+ this_data.append((url, fname, file_type))
187
188
if url is not None:
189
with requests.head(url) as r:
0 commit comments