materialsproject / pymatgen-analysis-defects

Defect analysis modules for pymatgen

Home Page:https://materialsproject.github.io/pymatgen-analysis-defects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order of Antisites generated

yuan-gist opened this issue · comments

I am wondering it might be better to replace species = set(map(_element_str, struct.species)) by species = list(dict.fromkeys(map(_element_str, struct.species))). This can avoid the unordered nature of set and help uniquely bookkeeping the defects together with defect_index. This could help database query.