Add new placeholder for submitter name and remove metadata element 'station' conflicting with third party converter

This commit is contained in:
2025-04-11 11:02:38 +02:00
parent 13bcd88a93
commit c9e25c2483
3 changed files with 3 additions and 9 deletions

View File

@ -1,7 +1,7 @@
${header_size} 1001
${originator_name}; Brem, Benjamin; Gysel-Beer, Martin
${lab}, Paul Scherrer Institute, PSI,,,, 5232, Villigen PSI, Switzerland
Nowak, Nora
${submitter_name}
GAW-WDCA EMEP CREATE ACTRIS
1 1
${start_day} ${rev_day}

View File

@ -1,7 +1,7 @@
${header_size} 1001
${originator_name}; Brem, Benjamin; Gysel-Beer, Martin
${lab}, Paul Scherrer Institute, PSI,,,, 5232, Villigen PSI, Switzerland
Nowak, Nora
${submitter_name}
GAW-WDCA EMEP CREATE ACTRIS
1 1
${start_day} ${rev_day}

View File

@ -42,15 +42,9 @@ def load_yaml(path):
'station': metadata['station'],
}
actris_metadata['originator_name'] = metadata['originator'].get('name', '')
actris_metadata['submitter_name'] = metadata['submitter'].get('name', '')
return flatten_yaml(actris_metadata)
def resolve_project_path():
try:
thisFilePath = os.path.abspath(__file__)
except NameError:
thisFilePath = os.getcwd()
return os.path.normpath(os.path.join(thisFilePath, "..", "..", ".."))
def fill_placeholders(template, data):
def replacer(match):
key = match.group(1)