From 711c4b70bfa3cfe91b31f0a510fca0cc256dcb48 Mon Sep 17 00:00:00 2001 From: Matt Venn Date: Wed, 22 Feb 2023 10:59:45 +0100 Subject: [PATCH] fix reqs, remove elif on arg parse --- requirements.txt | 2 +- tt_tool.py | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/requirements.txt b/requirements.txt index b46c6ee..0d111e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ gdstk cairosvg requests -yaml +PyYAML diff --git a/tt_tool.py b/tt_tool.py index 3b50487..becfdea 100755 --- a/tt_tool.py +++ b/tt_tool.py @@ -23,7 +23,7 @@ if __name__ == '__main__': parser.add_argument('--print-warnings', help="print any warnings", action="store_const", const=True) # documentation - parser.add_argument('--create-project-pdf', help="create a single page PDF", action="store_const", const=True) + parser.add_argument('--create-pdf', help="create a single page PDF", action="store_const", const=True) parser.add_argument('--create-svg', help="create a svg of the GDS layout", action="store_const", const=True) parser.add_argument('--create-png', help="create a png of the GDS layout", action="store_const", const=True) @@ -51,26 +51,25 @@ if __name__ == '__main__': if args.check_docs: documentation.check_yaml_docs(project_yaml) - elif args.print_cell_summary or args.print_cell_category: + if args.print_cell_summary or args.print_cell_category: reports.summarize(args) - elif args.create_cell_defs: + if args.create_cell_defs: reports.create_defs(args) - elif args.print_stats: + if args.print_stats: reports.print_stats(args) - elif args.print_warnings: + if args.print_warnings: reports.print_warnings(args) - elif args.create_user_config: + if args.create_user_config: project.create_user_config(project_yaml) - elif args.create_project_pdf: + if args.create_pdf: documentation.create_pdf(project_yaml) - elif args.create_svg or args.create_png: + if args.create_svg or args.create_png: documentation.create_svg(args) - else: - parser.print_help() + #parser.print_help()