From e97232d1c330d009addc9f5c4e4d154b34beab93 Mon Sep 17 00:00:00 2001 From: coleramos425 Date: Tue, 2 May 2023 16:34:07 -0500 Subject: [PATCH] Formatting cruft Signed-off-by: coleramos425 [ROCm/rocprofiler-compute commit: b3df8b903211c0e6f126ed2649353f57c573866d] --- .../src/omniperf_analyze/omniperf_analyze.py | 4 ++-- projects/rocprofiler-compute/src/parser.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py b/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py index 41d25903a4..7cb6b3bf62 100644 --- a/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py +++ b/projects/rocprofiler-compute/src/omniperf_analyze/omniperf_analyze.py @@ -171,7 +171,7 @@ def run_gui(args, runs): args.verbose, args, ) - if(args.random_port): + if args.random_port: app.run_server(debug=False, host="0.0.0.0", port=random.randint(1024, 49151)) else: app.run_server(debug=False, host="0.0.0.0", port=args.gui) @@ -285,7 +285,7 @@ def analyze(args): if args.gui: run_gui(args, runs) else: - if(args.random_port): + if args.random_port: print("ERROR: --gui flag required to enable --random-port") sys.exit(1) run_cli(args, runs) diff --git a/projects/rocprofiler-compute/src/parser.py b/projects/rocprofiler-compute/src/parser.py index f6557b63b5..a18ad5d22b 100644 --- a/projects/rocprofiler-compute/src/parser.py +++ b/projects/rocprofiler-compute/src/parser.py @@ -490,5 +490,5 @@ def parse(my_parser): analyze_group.add_argument( "--random-port", action="store_true", - help="\t\tRandomly generate a port to launch GUI application.\n\t\tRegistered Ports range inclusive (1024-49151)." + help="\t\tRandomly generate a port to launch GUI application.\n\t\tRegistered Ports range inclusive (1024-49151).", )