From ef05535060fae49015e06cf963998a5e97a89ea0 Mon Sep 17 00:00:00 2001 From: Aliaksandr Yakutovich Date: Mon, 26 Aug 2024 14:44:59 +0200 Subject: [PATCH] Fix checking the value of the parse_retrieved_files attribure. --- src/aiida_quantumespresso/parsers/pp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiida_quantumespresso/parsers/pp.py b/src/aiida_quantumespresso/parsers/pp.py index 687b05035..f847b583f 100644 --- a/src/aiida_quantumespresso/parsers/pp.py +++ b/src/aiida_quantumespresso/parsers/pp.py @@ -117,7 +117,7 @@ def get_key_from_filename(filename): matches = re.search(pattern, filename) return matches.group(1) - if self.node.inputs.metadata.options.parse_retrieved_files: + if self.node.base.attributes.get('parse_retrieved_files', True): for filename in filenames: # Directly parse the retrieved files after reading them to memory (`data_raw`). The raw data # of each file is released from memory after parsing, to improve memory usage.