Skip to content

Commit

Permalink
Minor update switched None to nan for cpu_count
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav2001 committed Jan 2, 2024
1 parent 19edb99 commit 6cd932f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sky/clouds/service_catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,9 @@ def make_list_from_df(rows):
),
axis='columns',
).tolist()
ret.sort(key=lambda info: (info.accelerator_count, info.price, info.
spot_price, info.region))
ret.sort(key=lambda info: (info.accelerator_count, info.cpu_count
if not pd.isna(info.cpu_count) else 0, info.
price, info.spot_price, info.region))
return ret

return {k: make_list_from_df(v) for k, v in grouped}
Expand Down

0 comments on commit 6cd932f

Please sign in to comment.