mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 20:13:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
c497f1a0cc
1 changed files with 3 additions and 1 deletions
|
@ -827,7 +827,7 @@ def create_dobs_string(obsl, name, spec='dobs v1.0', origin='', symbol=[], who=N
|
||||||
return rs
|
return rs
|
||||||
|
|
||||||
|
|
||||||
def write_dobs(obsl, fname, name, spec='dobs v1.0', origin='', symbol=[], who=None, enstags={}, gz=True):
|
def write_dobs(obsl, fname, name, spec='dobs v1.0', origin='', symbol=[], who=None, enstags=None, gz=True):
|
||||||
"""Export a list of Obs or structures containing Obs to a .xml.gz file
|
"""Export a list of Obs or structures containing Obs to a .xml.gz file
|
||||||
according to the Zeuthen dobs format.
|
according to the Zeuthen dobs format.
|
||||||
|
|
||||||
|
@ -857,6 +857,8 @@ def write_dobs(obsl, fname, name, spec='dobs v1.0', origin='', symbol=[], who=No
|
||||||
gz : bool
|
gz : bool
|
||||||
If True, the output is a gzipped XML. If False, the output is a XML file.
|
If True, the output is a gzipped XML. If False, the output is a XML file.
|
||||||
"""
|
"""
|
||||||
|
if enstags is None:
|
||||||
|
enstags = {}
|
||||||
|
|
||||||
dobsstring = create_dobs_string(obsl, name, spec, origin, symbol, who, enstags=enstags)
|
dobsstring = create_dobs_string(obsl, name, spec, origin, symbol, who, enstags=enstags)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue