Skip to content

Commit

Permalink
Reset index in clusters df
Browse files Browse the repository at this point in the history
  • Loading branch information
rashatwi committed Mar 4, 2024
1 parent 252b6a9 commit b47ccda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdproptools/structural/cluster_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def get_unique_configurations(
"configurations"
)
merge_cols = [i for i in list(df.columns) if i.startswith("atoms_")]
df = df.sort_values("cluster")
df = df.sort_values("cluster").reset_index(drop=True)
top_config = top_config.merge(
df[["cluster"] + merge_cols], on=merge_cols
).drop_duplicates(merge_cols)
Expand Down

0 comments on commit b47ccda

Please sign in to comment.