Skip to content

Commit

Permalink
Debugging (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashatwi committed Mar 4, 2024
1 parent 0a56b2a commit 707de8d
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,10 +450,10 @@ def get_unique_configurations(
"configurations"
)
merge_cols = [i for i in list(df.columns) if i.startswith("atoms_")]
print(df)
top_config = top_config.merge(
df[["cluster"] + merge_cols], on=merge_cols
).drop_duplicates(merge_cols)
print(top_config)
for ind, cluster in enumerate(top_config["cluster"]):
shutil.copy(f"{working_dir}/{cluster}", f"{working_dir}/conf_{ind+1}.xyz")
top_config.to_csv(f"{working_dir}/top_conf.csv", index=False)
Expand Down

0 comments on commit 707de8d

Please sign in to comment.