Resolve incorrect dataframe size in analyze mode (#84)

Signed-off-by: coleramos425 <colramos@amd.com>
This commit is contained in:
coleramos425
2023-02-14 15:20:37 -06:00
parent b41326dfca
commit 1d82bc67b0
+1 -1
View File
@@ -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]: