Skip to content

Commit

Permalink
change some other numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Oct 9, 2019
1 parent 6c6895a commit 74e4842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buffet.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ def draw_frame(buffet, fn, simple):
# Pillow (at least whatever version I have) seems to segfault occasionally
# That's why we run it inside a pool
if simple:
up_f, down_f = 256, 4
up_f, down_f = 128, 4
else:
up_f, down_f = 256, 2
up_f, down_f = 256, 4

im = PIL.Image.new('RGBA', (int(buffet.w*up_f), int(buffet.h*up_f)), (255, 255, 255))
draw = PIL.ImageDraw.Draw(im)
Expand Down
4 changes: 2 additions & 2 deletions run_many.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def run_one(args):
method, rate = args
fn = 'simulations/%s_%f.json' % (method, rate)
fn = 'simulations/%s_%.2f.json' % (method, rate)
if os.path.exists(fn):
return

Expand All @@ -23,7 +23,7 @@ def run_one(args):

if __name__ == '__main__':
methods = ['classic', 'vline', 'rogue', 'skippable']
rates = [(z+1)/10 for z in range(15)]
rates = [(z+1)/20 for z in range(40)]
pool = multiprocessing.Pool()
combinations = list(itertools.product(methods, rates))
random.shuffle(combinations)
Expand Down

0 comments on commit 74e4842

Please sign in to comment.