Skip to content

Commit b47ccda

Browse files
committed
Reset index in clusters df
1 parent 252b6a9 commit b47ccda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdproptools/structural/cluster_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def get_unique_configurations(
450450
"configurations"
451451
)
452452
merge_cols = [i for i in list(df.columns) if i.startswith("atoms_")]
453-
df = df.sort_values("cluster")
453+
df = df.sort_values("cluster").reset_index(drop=True)
454454
top_config = top_config.merge(
455455
df[["cluster"] + merge_cols], on=merge_cols
456456
).drop_duplicates(merge_cols)

0 commit comments

Comments
 (0)