fix: Modification of parameter with default in input.dobs fixed.

This commit is contained in:
Fabian Joswig 2022-06-15 14:04:07 +01:00
parent d79aa2cf74
commit 02403fc282

View file

@ -652,7 +652,7 @@ def _dobsdict_to_xmlstring_spaces(d, space=' '):
return o return o
def create_dobs_string(obsl, name, spec='dobs v1.0', origin='', symbol=[], who=None, enstags={}): def create_dobs_string(obsl, name, spec='dobs v1.0', origin='', symbol=[], who=None, enstags=None):
"""Generate the string for the export of a list of Obs or structures containing Obs """Generate the string for the export of a list of Obs or structures containing Obs
to a .xml.gz file according to the Zeuthen dobs format. to a .xml.gz file according to the Zeuthen dobs format.
@ -678,6 +678,8 @@ def create_dobs_string(obsl, name, spec='dobs v1.0', origin='', symbol=[], who=N
Provide alternative enstag for ensembles in the form enstags = {ename: enstag} Provide alternative enstag for ensembles in the form enstags = {ename: enstag}
Otherwise, the ensemble name is used. Otherwise, the ensemble name is used.
""" """
if enstags is None:
enstags = {}
od = {} od = {}
r_names = [] r_names = []
for o in obsl: for o in obsl: