volrath50 commited on
Commit
5a29888
1 Parent(s): 38fc731

Update create-mtg-training-data.py

Browse files

fix a comment # I accidently deleted. fixed the kylem bug.

Files changed (1) hide show
  1. create-mtg-training-data.py +3 -4
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
- #for some reason Kylem causes the script to crash. I have no idea why. I got tired of trying to figure it out, and it's 2am, so fuck Kylem
170
- #elif set_code == 'BBD':
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':