mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-07-03 22:50:47 +02:00
Add new placeholder for submitter name and remove metadata element 'station' conflicting with third party converter
This commit is contained in:
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user