From 45fd352f1e50bcd75d231dfce39207d81fc38d03 Mon Sep 17 00:00:00 2001 From: "Brian T. Rice" Date: Mon, 29 Apr 2024 16:09:13 -0700 Subject: [PATCH] Fix a bug in generate_model_demos --mode option when not given. --- generate_model_demos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_model_demos.py b/generate_model_demos.py index 21b140e..8ec76d0 100755 --- a/generate_model_demos.py +++ b/generate_model_demos.py @@ -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)