Skip to content

Commit

Permalink
change : --show-image --> --no-display.
Browse files Browse the repository at this point in the history
  • Loading branch information
sadrasabouri committed Oct 2, 2024
1 parent 2728646 commit ceb5e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions samila/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ceb5e5c

Please sign in to comment.