[refactor] remove positional None argument in AICPicker instantiation

Instead use keyword arguments
This commit is contained in:
Darius Arnold 2018-05-29 19:17:05 +02:00
parent 1ffe4dcbb2
commit b93407012e

View File

@ -788,8 +788,8 @@ def autopickstation(wfstream, pickparam, verbose=False,
else:
fig = None
linecolor = 'k'
aicpick = AICPicker(aiccf, p_params['tsnrz'], p_params['pickwinP'], iplot, None, p_params['aictsmooth'],
fig=fig, linecolor=linecolor)
aicpick = AICPicker(aiccf, p_params['tsnrz'], p_params['pickwinP'], iplot, Tsmooth=p_params['aictsmooth'],
fig=fig, linecolor=linecolor, checkwindow=p_params['checkwindowP'], minfactor=p_params['minfactorP'])
# add pstart and pstop to aic plot
if fig:
for ax in fig.axes:
@ -1108,7 +1108,7 @@ def autopickstation(wfstream, pickparam, verbose=False,
fig = None
linecolor = 'k'
aicarhpick = AICPicker(haiccf, s_params['tsnrh'], s_params['pickwinS'], iplot, None,
s_params['aictsmoothS'], fig=fig, linecolor=linecolor)
s_params['aictsmoothS'], fig=fig, linecolor=linecolor, checkwindow=s_params['checkwindowS'], minfactor=s_params['minfactorS'])
###############################################################
# go on with processing if AIC onset passes quality control
slope = aicarhpick.getSlope()