From 1d82bc67b08e50050d19fe3bcee75b22189feba0 Mon Sep 17 00:00:00 2001 From: coleramos425 Date: Tue, 14 Feb 2023 15:20:37 -0600 Subject: [PATCH] Resolve incorrect dataframe size in analyze mode (#84) Signed-off-by: coleramos425 --- src/omniperf_analyze/utils/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omniperf_analyze/utils/parser.py b/src/omniperf_analyze/utils/parser.py index 7d6dcab493..cddf4960a2 100644 --- a/src/omniperf_analyze/utils/parser.py +++ b/src/omniperf_analyze/utils/parser.py @@ -650,7 +650,7 @@ def apply_filters(workload, is_gui, debug): # NB: support ignoring the 1st n dispatched execution by '> n' # The better way may be parsing python slice string for d in workload.filter_dispatch_ids: - if int(d) > len(ret_df) - 2: # subtract 2 bc of the two header rows + if int(d) >= len(ret_df): # subtract 2 bc of the two header rows print("{} is an invalid dispatch id.".format(d)) sys.exit(1) if ">" in workload.filter_dispatch_ids[0]: