mirror of
https://gitea.psi.ch/APOG/acsm-fairifier.git
synced 2025-07-08 00:55:01 +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
|
${header_size} 1001
|
||||||
${originator_name}; Brem, Benjamin; Gysel-Beer, Martin
|
${originator_name}; Brem, Benjamin; Gysel-Beer, Martin
|
||||||
${lab}, Paul Scherrer Institute, PSI,,,, 5232, Villigen PSI, Switzerland
|
${lab}, Paul Scherrer Institute, PSI,,,, 5232, Villigen PSI, Switzerland
|
||||||
Nowak, Nora
|
${submitter_name}
|
||||||
GAW-WDCA EMEP CREATE ACTRIS
|
GAW-WDCA EMEP CREATE ACTRIS
|
||||||
1 1
|
1 1
|
||||||
${start_day} ${rev_day}
|
${start_day} ${rev_day}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
${header_size} 1001
|
${header_size} 1001
|
||||||
${originator_name}; Brem, Benjamin; Gysel-Beer, Martin
|
${originator_name}; Brem, Benjamin; Gysel-Beer, Martin
|
||||||
${lab}, Paul Scherrer Institute, PSI,,,, 5232, Villigen PSI, Switzerland
|
${lab}, Paul Scherrer Institute, PSI,,,, 5232, Villigen PSI, Switzerland
|
||||||
Nowak, Nora
|
${submitter_name}
|
||||||
GAW-WDCA EMEP CREATE ACTRIS
|
GAW-WDCA EMEP CREATE ACTRIS
|
||||||
1 1
|
1 1
|
||||||
${start_day} ${rev_day}
|
${start_day} ${rev_day}
|
||||||
|
@ -42,15 +42,9 @@ def load_yaml(path):
|
|||||||
'station': metadata['station'],
|
'station': metadata['station'],
|
||||||
}
|
}
|
||||||
actris_metadata['originator_name'] = metadata['originator'].get('name', '')
|
actris_metadata['originator_name'] = metadata['originator'].get('name', '')
|
||||||
|
actris_metadata['submitter_name'] = metadata['submitter'].get('name', '')
|
||||||
return flatten_yaml(actris_metadata)
|
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 fill_placeholders(template, data):
|
||||||
def replacer(match):
|
def replacer(match):
|
||||||
key = match.group(1)
|
key = match.group(1)
|
||||||
|
Reference in New Issue
Block a user