Skip to content

Commit

Permalink
Fix a bug in generate_model_demos --mode option when not given.
Browse files Browse the repository at this point in the history
  • Loading branch information
briantrice committed Apr 29, 2024
1 parent e983e4e commit 45fd352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_model_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def main():
diagnostic_filename = os.path.join(base_dir, f'{model_name}.Diagnostic.png')
diagnostic_img.save(diagnostic_filename)
print(f' Diagnostic output for: {model_name} at: {diagnostic_filename}')
elif Mode.RENDER in modes:
if Mode.RENDER in modes:
sliderule_img = render_sliderule_mode(model, borders=True, cutoffs=True)
sliderule_filename = os.path.join(base_dir, f'{model_name}.SlideRuleScales.png')
sliderule_img.save(sliderule_filename, 'PNG')
print(f' SlideRuleScales output for: {model_name} at: {sliderule_filename}')
elif Mode.STICKERPRINT in modes:
if Mode.STICKERPRINT in modes:
sliderule_img = render_sliderule_mode(model, cutoffs=True)
sliderule_stickers_img = render_sliderule_mode(model, sliderule_img)
stickers_img = render_stickerprint_mode(model, sliderule_stickers_img)
Expand Down

0 comments on commit 45fd352

Please sign in to comment.