Resolve incorrect dataframe size in analyze mode (#84)
Signed-off-by: coleramos425 <colramos@amd.com>
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user