From 547355fbdf3522583f2066683b204c445fc6811d Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Mon, 17 Jul 2017 13:44:38 +0200 Subject: [PATCH] [change] updated parameters of function call exportEvent in autoPyLoT --- autoPyLoT.py | 2 +- pylot/core/io/data.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index d3c28fe2..a02ff306 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -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) diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index a3bd3da1..b7829638 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -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