Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	pydefect/__init__.py
#	pydefect/util/mp_tools.py
  • Loading branch information
yuuukuma committed Mar 27, 2024
2 parents d89000e + 1c1048e commit 847754b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydefect/cli/vasp/make_composition_energies_from_mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def make_composition_energies_from_mp(elements: List[str],

for e in entries:
key = e.composition
energy = e.energy
energy = e.energy_per_atom
for k, v in key.as_dict().items():
energy += diff[k] * v
comp_es[key] = CompositionEnergy(energy, e.entry_id)
comp_es[key] = CompositionEnergy(energy, e.material_id)
comp_es = remove_higher_energy_comp(comp_es)
return CompositionEnergies(comp_es)

Expand All @@ -58,4 +58,4 @@ def remove_higher_energy_comp(


if __name__ == "__main__":
print(make_composition_energies_from_mp(["Mg", "O"]))
print(make_composition_energies_from_mp(["Mg", "O"]))
1 change: 1 addition & 0 deletions pydefect/util/MPID_elements_10th_Jan_2024.json

Large diffs are not rendered by default.

0 comments on commit 847754b

Please sign in to comment.