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

Reinstated system type check in encyclopedia processing.

parent deeab5a0
Pipeline #76702 failed with stages
in 42 minutes and 5 seconds
...@@ -249,8 +249,10 @@ class EncyclopediaNormalizer(Normalizer): ...@@ -249,8 +249,10 @@ class EncyclopediaNormalizer(Normalizer):
"unsupported material type for encyclopedia", "unsupported material type for encyclopedia",
enc_status=status, enc_status=status,
) )
return
# Get the method type # Get the method type. For now, we allow unknown method type to
# allow phonon calculations through.
representative_method, method_type = self.method_type(method) representative_method, method_type = self.method_type(method)
if method_type == config.services.unavailable_value: if method_type == config.services.unavailable_value:
status = status_enums.unsupported_method_type status = status_enums.unsupported_method_type
......
...@@ -1032,9 +1032,9 @@ class Upload(Proc): ...@@ -1032,9 +1032,9 @@ class Upload(Proc):
# calculations. TODO: This should be replaced by a more # calculations. TODO: This should be replaced by a more
# extensive mechamism that supports more complex dependencies # extensive mechamism that supports more complex dependencies
# between calculations. # between calculations.
phonon_calculations = Calc.objects(upload_id=self.upload_id, parser="parsers/phonopy") # phonon_calculations = Calc.objects(upload_id=self.upload_id, parser="parsers/phonopy")
for calc in phonon_calculations: # for calc in phonon_calculations:
calc.process_phonon() # calc.process_phonon()
self.cleanup() self.cleanup()
else: else:
......
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