[change] updated parameters of function call exportEvent in autoPyLoT

This commit is contained in:
Marcel Paffrath 2017-07-17 13:44:38 +02:00
parent 52f9e61c9f
commit 547355fbdf
2 changed files with 5 additions and 5 deletions

View File

@ -361,7 +361,7 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even
evt.resource_id = ResourceIdentifier('smi:local/' + event_id)
data.applyEVTData(evt, 'event')
fnqml = '%s/PyLoT_%s' % (event, evID)
data.exportEvent(fnqml, fnext='.xml', fcheck='manual')
data.exportEvent(fnqml, fnext='.xml', fcheck=['auto', 'magnitude', 'origin'])
if locflag == 1:
# HYPO71
hypo71file = '%s/PyLoT_%s_HYPO71_phases' % (event, evID)

View File

@ -188,10 +188,10 @@ class Data(object):
def exportEvent(self, fnout, fnext='.xml', fcheck='auto', upperErrors=None):
"""
:param fnout:
:param fnext:
:param fcheck:
:raise KeyError:
:param fnout: basename of file
:param fnext: file extension
:param fcheck: check and delete existing information
can be a str or a list of strings of ['manual', 'auto', 'origin', 'magnitude']
"""
from pylot.core.util.defaults import OUTPUTFORMATS