Planned maintenance on Wednesday, 2021-01-20, 17:00-18:00. Expect some interruptions during that time

Commit 12c9278d authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen

include 'siesta-' or 'trunk-' in version numbers, since Siesta apparently...

include 'siesta-' or 'trunk-' in version numbers, since Siesta apparently plays that way.  Also, make an ad-hoc attempt to not fail when encountering indented lines outside of blocks in the input logfile.  Logfiles are often totally garbled but we hope it works nevertheless.
parent c7ce1be0
......@@ -81,7 +81,9 @@ def get_input_metadata(inputvars_file, use_new_format):
else:
if use_new_format:
if line.startswith(' '):
assert currentblock is not None
if currentblock is None:
continue # Ignore. Probably some warning
#assert currentblock is not None, line
currentblock.append(tokens)
else:
currentblock = None
......@@ -493,7 +495,7 @@ def get_header_matcher():
weak=True,
forwardMatch=True,
subMatchers=[
SM(r'Siesta Version: siesta-(?P<program_version>\S+)',
SM(r'Siesta Version: (?P<program_version>\S+)',
name='version',
adHoc=context.adhoc_format_new),
SM(r'SIESTA\s*(?P<program_version>.+)',
......
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