From 3f096f399b88b84d3944ffd32e1a1ef29d971452 Mon Sep 17 00:00:00 2001 From: Haoyu Yang <yanghaoyu97@outlook.com> Date: Tue, 8 Apr 2025 12:24:41 +0000 Subject: [PATCH] Resolve "Typo in parser `code_name`? "currupted mainfile"" --- nomad/parsing/parser.py | 2 +- nomad/parsing/parsers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/parsing/parser.py b/nomad/parsing/parser.py index 3c8f8ac41b..c6cf0fc402 100644 --- a/nomad/parsing/parser.py +++ b/nomad/parsing/parser.py @@ -152,7 +152,7 @@ class BrokenParser(Parser): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.code_name = 'currupted mainfile' + self.code_name = 'corrupted mainfile' self._patterns = [ re.compile( r'^pid=[0-9]+' diff --git a/nomad/parsing/parsers.py b/nomad/parsing/parsers.py index ba20b1291a..f5d7365dd2 100644 --- a/nomad/parsing/parsers.py +++ b/nomad/parsing/parsers.py @@ -314,7 +314,7 @@ for parser in parsers: if ( getattr(parser, 'domain', None) == 'dft' and code_name is not None - and code_name != 'currupted mainfile' + and code_name != 'corrupted mainfile' and code_name != 'Template' ): code_names.append(code_name) -- GitLab