Skip to content

Commit

Permalink
return None if not the appropriate calculation type
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-jiyoon committed Aug 5, 2022
1 parent f2a3da4 commit 3b6bef6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emmet-builders/emmet/builders/materials/electrodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ def _entry_from_mat_doc(self, mdoc):
return ComputedStructureEntry.from_dict(mdoc["entries"]["GGA+U"])
elif "GGA" in mdoc["entries"].keys():
return ComputedStructureEntry.from_dict(mdoc["entries"]["GGA"])
else:
return None

def process_item(self, item: Any) -> Any:
if item is None:
Expand Down

0 comments on commit 3b6bef6

Please sign in to comment.