Skip to content

Commit

Permalink
Use f-strings
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Yang <leewyang@gmail.com>
  • Loading branch information
leewyang committed Sep 26, 2024
1 parent d5492f5 commit d3f93d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion user_tools/src/spark_rapids_tools/tools/qualx/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def extract_model_features(
if modified_df.index.equals(dataset_df.index):
cpu_aug_tbl.update(modified_df)
else:
raise ValueError('Plugin: split_function for %s unexpectedly modified row indices.' % ds_name)
raise ValueError(f'Plugin: split_function for {ds_name} unexpectedly modified row indices.')
cpu_aug_tbl.update(dataset_df)

# handle default split function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def infer_app_meta(eventlogs: List[str]) -> Mapping[str, Mapping]:
if modified_dataset_df.index.equals(dataset_df.index):
profile_df.update(modified_dataset_df)
else:
raise ValueError('Plugin: load_profiles_hook for %s unexpectedly modified row indices.' % ds_name)
raise ValueError(f'Plugin: load_profiles_hook for {ds_name} unexpectedly modified row indices.')
return profile_df


Expand Down

0 comments on commit d3f93d2

Please sign in to comment.