From ceb5e5c3b70eb647ec73cad70054edae48ff1e5d Mon Sep 17 00:00:00 2001 From: Sadra Sabouri Date: Tue, 1 Oct 2024 18:17:29 -0700 Subject: [PATCH] change : `--show-image` --> `--no-display`. --- .github/workflows/test.yml | 2 +- samila/__main__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index afa4c75..7d5747e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: python -m samila --info - name: Samila CLI test run: | - python -m samila --color=red --bgcolor=black --rotation=30 --projection=polar --mode f2_vs_f1 --save-image test.png + python -m samila --no-display --color=red --bgcolor=black --rotation=30 --projection=polar --mode f2_vs_f1 --save-image test.png - name: Test requirements Installation run: | python otherfiles/requirements-splitter.py diff --git a/samila/__main__.py b/samila/__main__.py index 032938b..d0b29c3 100644 --- a/samila/__main__.py +++ b/samila/__main__.py @@ -59,7 +59,7 @@ def main(): parser.add_argument('--depth', help='depth', type=float) parser.add_argument('--save-data', help='save data', type=str) parser.add_argument('--save-config', help='save config', type=str) - parser.add_argument('--show-image', help='show image', action='store_true', default=True) + parser.add_argument('--no-display', help='no display', action='store_true', default=False) args = parser.parse_args() if args.version: @@ -95,7 +95,7 @@ def main(): linewidth=args.linewidth, rotation=args.rotation, ) - if args.show_image: + if not args.no_display: plt.show() if args.save_image: