Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
  • Loading branch information
koomie committed Mar 3, 2024
1 parent ea9783f commit f94da32
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,10 @@ def apply_filters(workload, dir, is_gui, debug):
ret_df[schema.pmc_perf_file_prefix]["Kernel_Name"].isin(kernels)
]
elif all(type(kid) == str for kid in workload.filter_kernel_ids):
df_cleaned = ret_df[schema.pmc_perf_file_prefix]["Kernel_Name"].apply(lambda x: x.strip() if isinstance(x, str) else x)
ret_df = ret_df.loc[
df_cleaned.isin(
workload.filter_kernel_ids
)
]
df_cleaned = ret_df[schema.pmc_perf_file_prefix]["Kernel_Name"].apply(
lambda x: x.strip() if isinstance(x, str) else x
)
ret_df = ret_df.loc[df_cleaned.isin(workload.filter_kernel_ids)]
else:
error("Mixing kernel indices and string filters is not currently supported")

Expand Down

0 comments on commit f94da32

Please sign in to comment.