Skip to content

Commit

Permalink
updated error message
Browse files Browse the repository at this point in the history
updated error message


update
  • Loading branch information
jmmshn committed Mar 16, 2021
1 parent 6cee3ff commit 13d21b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions emmet-builders/emmet/builders/vasp/thermo.py
Expand Up @@ -114,7 +114,7 @@ def process_item(self, item: Tuple[List[str], List[ComputedEntry]]):
)
chemsys = "-".join(elements)

self.logger.debug(f"Procesing {len(entries)} entries for {chemsys}")
self.logger.debug(f"Processing {len(entries)} entries for {chemsys}")

material_entries = defaultdict(dict)
pd_entries = []
Expand All @@ -128,6 +128,7 @@ def process_item(self, item: Tuple[List[str], List[ComputedEntry]]):
elif "GGA" in material_entries[material_id]:
pd_entries.append(material_entries[material_id]["GGA"])
pd_entries = self.compatibility.process_entries(pd_entries)
self.logger.debug(f"{len(pd_entries)} remain in {chemsys} after filtering")

try:
docs = ThermoDoc.from_entries(pd_entries)
Expand All @@ -145,7 +146,7 @@ def process_item(self, item: Tuple[List[str], List[ComputedEntry]]):
)
return []
except Exception as e:
self.logger.error(f"Got unexpected error: {e}")
self.logger.error(f"Got unexpected error while processing {[ent_.entry_id for ent_ in entries]}: {e}")
return []

return [d.dict() for d in docs]
Expand Down

0 comments on commit 13d21b1

Please sign in to comment.