We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e7756e commit ef5321bCopy full SHA for ef5321b
src/pymatgen/io/vasp/outputs.py
@@ -2,6 +2,7 @@
2
3
from __future__ import annotations
4
5
+import hashlib
6
import itertools
7
import math
8
import os
@@ -869,7 +870,7 @@ def get_computed_entry(
869
870
if entry_id is None:
871
calc_date = re.sub(" ", "", self.generator["DATE"])
872
calc_time = self.generator["TIME"]
- hashed_structure = hash(str(self.final_structure))
873
+ hashed_structure = hashlib.md5(str(self.final_structure).encode("utf-8")).hexdigest() # noqa: S324
874
875
entry_id = f"vasprun-{calc_date}-{calc_time}-{hashed_structure}"
876
param_names = {
0 commit comments