Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo committed Oct 25, 2024
1 parent 82d442f commit 84d146c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sky/clouds/service_catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ def get_instance_type_for_accelerator_impl(
if len(fuzzy_result) > 0:
for _, row in fuzzy_result.iterrows():
acc_cnt = float(row['AcceleratorCount'])
acc_count_display = (int(acc_cnt)
if acc_cnt.is_integer() else f'{acc_cnt:.2f}')
acc_count_display = (int(acc_cnt) if acc_cnt.is_integer() else
f'{acc_cnt:.2f}')
fuzzy_candidate_list.append(f'{row["AcceleratorName"]}:'
f'{acc_count_display}')
return (None, fuzzy_candidate_list)
Expand Down

0 comments on commit 84d146c

Please sign in to comment.