mutable default arguments may cause problems as unexpected default behavior

This commit is contained in:
Sebastian Wehling-Benatelli 2015-03-30 06:04:24 +02:00
parent 814906ef65
commit 5b52f718fe

View File

@ -4,7 +4,8 @@
from obspy.signal.trigger import recSTALTA, triggerOnset
def createSingleTriggerlist(st, station='ZV01', trigcomp='Z', stalta=[1, 10], trigonoff=[6, 1]):
def createSingleTriggerlist(st, station='ZV01', trigcomp='Z', stalta=(1, 10),
trigonoff=(6, 1)):
'''
uses a single-station trigger to create a triggerlist for this station
:param st: