Update create-mtg-training-data.py
Browse filesfix a comment # I accidently deleted. fixed the kylem bug.
create-mtg-training-data.py
CHANGED
@@ -65,7 +65,7 @@ def save_image(img_url, filename):
|
|
65 |
response = requests.get(img_url)
|
66 |
with open('{}{}'.format(directory, filename), 'wb') as f:
|
67 |
f.write(response.content)
|
68 |
-
report to stdout that we just saved the url to the filename
|
69 |
print('Saved {} to {}'.format(img_url, filename))
|
70 |
|
71 |
|
@@ -166,9 +166,8 @@ def determine_plane(set_code):
|
|
166 |
plane = 'Kamigawa, past'
|
167 |
elif set_code == 'NEC':
|
168 |
plane = 'Kamigawa, present'
|
169 |
-
|
170 |
-
|
171 |
-
# plane == 'Kylem'
|
172 |
elif set_code == 'LOR' or set_code == 'MOR':
|
173 |
plane = 'Lorwyn, LorShad'
|
174 |
elif set_code == 'SHM' or set_code == 'EVE':
|
|
|
65 |
response = requests.get(img_url)
|
66 |
with open('{}{}'.format(directory, filename), 'wb') as f:
|
67 |
f.write(response.content)
|
68 |
+
#report to stdout that we just saved the url to the filename
|
69 |
print('Saved {} to {}'.format(img_url, filename))
|
70 |
|
71 |
|
|
|
166 |
plane = 'Kamigawa, past'
|
167 |
elif set_code == 'NEC':
|
168 |
plane = 'Kamigawa, present'
|
169 |
+
elif set_code == 'BBD':
|
170 |
+
plane = 'Kylem'
|
|
|
171 |
elif set_code == 'LOR' or set_code == 'MOR':
|
172 |
plane = 'Lorwyn, LorShad'
|
173 |
elif set_code == 'SHM' or set_code == 'EVE':
|