Commit 89918159 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Updated ATK metadata and its supported files.

parent 42908657
Pipeline #90677 passed with stages
in 32 minutes and 12 seconds
Subproject commit cf4d76ad7b1b51388936e227d52a868a97a5d1cc
Subproject commit 199a7322b7a00c3b658b0b328219b58ecc227c84
......@@ -194,15 +194,13 @@ def toolkit_metadata():
@dev.command(help=(
'Updates parser`s README files by combining a general template with '
'a parser`s metadata YAML file.'))
def update_parsers_readmes():
@click.option('--parser', help='Only updated the README of the given parsers subdirctory.')
def update_parser_readmes(parser):
from glob import glob
import re
import yaml
print('\nPWD: ', os.getcwd())
print('WARNING: to be run from project`s root dir\n')
# based on
# https://www.kite.com/python/answers/how-to-update-and-replace-text-in-a-file-in-python
os.chdir(os.path.join(os.path.dirname(__file__), '../..'))
# filenames
local_fn = 'README.md'
......@@ -210,7 +208,11 @@ def update_parsers_readmes():
parser_path = './dependencies/parsers/'
for num, ddir in enumerate(sorted(glob(parser_path + '*/')), start=1):
parser_dirname = ddir.split('/')[-2]
if parser is not None and parser != ddir.split(os.sep)[-2]:
print(f'Skip {ddir}')
continue
_, parser_dirname = os.path.split(ddir)
print('{} Working on {}' .format(num, parser_dirname))
# Open general template
......
......@@ -296,7 +296,7 @@ parsers = [
mainfile_mime_re=r'application/(x-tar|octet-stream)'
),
LegacyParser(
name='parsers/atk', code_name='ATK', code_homepage='https://www.synopsys.com/silicon/quantumatk.html',
name='parsers/atk', code_name='AtomistixToolKit', code_homepage='https://www.synopsys.com/silicon/quantumatk.html',
parser_class_name='atkparser.ATKParserWrapper',
# mainfile_contents_re=r'', # We can't read .gpw as txt - of UlmGPAW|AFFormatGPAW'
mainfile_name_re=r'^.*\.nc',
......
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