Skip to content

Commit 4032ed5

Browse files
committedFeb 12, 2025
Update util.py
1 parent 43e1463 commit 4032ed5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎qiita_db/util.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,8 @@ def _resource_allocation_plot_helper(
25562556
ax.scatter(failures_df[col_name], failures_df[curr], color='red', s=3,
25572557
label="failures")
25582558

2559-
success_df.loc[:, 'node_name'] = success_df['node_name'].fillna('unknown')
2559+
success_df['node_name'].fillna('unknown', inplace=True)
2560+
25602561
slurm_hosts = set(success_df['node_name'].tolist())
25612562
cmap = colormaps['Accent']
25622563
if len(slurm_hosts) > len(cmap.colors):
@@ -2763,8 +2764,8 @@ def _resource_allocation_success_failures(df, k, a, b, model, col_name, type_):
27632764

27642765
x_plot = np.array(df[col_name])
27652766
df[f'c{type_}'] = model(x_plot, k, a, b)
2766-
success_df = df[df[type_] <= df[f'c{type_}']]
2767-
failures_df = df[df[type_] > df[f'c{type_}']]
2767+
success_df = df[df[type_] <= df[f'c{type_}']].copy()
2768+
failures_df = df[df[type_] > df[f'c{type_}']].copy()
27682769
return (success_df, failures_df)
27692770

27702771

0 commit comments

Comments
 (0)