Commit c7eb8a03 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed submodule reference, added check for requiring symmetry information...

Fixed submodule reference, added check for requiring symmetry information before processing bulk systems in EncyclopediaNormalizer.
parent 7e4bef3c
Pipeline #70566 failed with stages
in 19 minutes and 17 seconds
Subproject commit 022a2af6bad45364dbdfac6b6c913f04186ac7d4
Subproject commit 2e8b48c457eeb0a44d6b006b701203e197df2861
......@@ -174,8 +174,16 @@ class EncyclopediaNormalizer(Normalizer):
except KeyError:
pass
else:
if stype == system_enums.bulk or stype == system_enums.one_d or stype == system_enums.two_d:
if stype == system_enums.one_d or stype == system_enums.two_d:
system_type = stype
# For bulk systems we also ensure that the symmetry information is available
if stype == system_enums.bulk:
try:
system["section_symmetry"][0]
except (KeyError, IndexError):
self.logger.info("Symmetry information is not available for a bulk system. No Encylopedia entry created.")
else:
system_type = stype
material.system_type = system_type
return system, system_type
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment