Commit 2bbada57 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed broken variable name.

parent c61ff1f2
......@@ -46,7 +46,7 @@ version_re = re.compile(r'(\d+(\.\d+(\.\d+)?)?)')
def map_functional_name_to_xc_treatment(name):
if name == config.services.unavailable_label:
if name == config.services.unavailable_value:
return name
return xc_treatments.get(name[:3].lower(), name)
......@@ -114,7 +114,7 @@ class DFTCalcWithMetadata(CalcWithMetadata):
if val is None:
logger.warning(
'The values for %s where not available in any %s' % (key, section))
return unavailable_value if unavailable_value is not None else config.services.unavailable_label
return unavailable_value if unavailable_value is not None else config.services.unavailable_value
else:
return val
......
......@@ -184,7 +184,7 @@ class SystemNormalizer(SystemBasedNormalizer):
Determine the dimensioality and hence the system type of the system with
Matid. Write the system type to the backend.
"""
system_type = 'unavailable'
system_type = config.services.unavailable_value
try:
dimensionality = get_dimensionality(
atoms, cluster_threshold=3.1, return_clusters=False)
......
......@@ -68,11 +68,11 @@ def assert_normalized(backend: LocalBackend):
assert len(metadata.atoms) > 0
assert metadata.spacegroup is not None
assert metadata.code_name is not config.services.unavailable_label
assert metadata.code_version is not config.services.unavailable_label
assert metadata.basis_set is not config.services.unavailable_label
assert metadata.xc_functional is not config.services.unavailable_label
assert metadata.system is not config.services.unavailable_label
assert metadata.code_name != config.services.unavailable_value
assert metadata.code_version != config.services.unavailable_value
assert metadata.basis_set != config.services.unavailable_value
assert metadata.xc_functional != config.services.unavailable_value
assert metadata.system != config.services.unavailable_value
# TODO check symmetry where we know it should be there
......
Markdown is supported
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