[bugfix] reinstated ludgers changes, added bugfix for GUI
This commit is contained in:
parent
77dd0d4733
commit
1de1dc71f8
@ -100,9 +100,9 @@ def autopickevent(data, param, iplot=0, fig_dict=None, fig_dict_wadatijack=None,
|
|||||||
|
|
||||||
# quality control
|
# quality control
|
||||||
# median check and jackknife on P-onset times
|
# median check and jackknife on P-onset times
|
||||||
jk_checked_onsets = checkPonsets(all_onsets, mdttolerance, jackfactor, 1, fig_dict_wadatijack)
|
jk_checked_onsets = checkPonsets(all_onsets, mdttolerance, jackfactor, iplot, fig_dict_wadatijack)
|
||||||
# check S-P times (Wadati)
|
# check S-P times (Wadati)
|
||||||
wadationsets = wadaticheck(jk_checked_onsets, wdttolerance, 1, fig_dict_wadatijack)
|
wadationsets = wadaticheck(jk_checked_onsets, wdttolerance, iplot, fig_dict_wadatijack)
|
||||||
return wadationsets
|
return wadationsets
|
||||||
|
|
||||||
|
|
||||||
|
@ -684,7 +684,7 @@ def wadaticheck(pickdic, dttolerance, iplot=0, fig_dict=None):
|
|||||||
wfitflag = 1
|
wfitflag = 1
|
||||||
|
|
||||||
# plot results
|
# plot results
|
||||||
if iplot > 0:
|
if iplot > 0 or fig_dict:
|
||||||
if fig_dict:
|
if fig_dict:
|
||||||
fig = fig_dict['wadati']
|
fig = fig_dict['wadati']
|
||||||
linecolor = fig_dict['plot_style']['linecolor']['rgba_mpl']
|
linecolor = fig_dict['plot_style']['linecolor']['rgba_mpl']
|
||||||
@ -926,7 +926,7 @@ def checkPonsets(pickdic, dttolerance, jackfactor=5, iplot=0, fig_dict=None):
|
|||||||
|
|
||||||
checkedonsets = pickdic
|
checkedonsets = pickdic
|
||||||
|
|
||||||
if iplot > 0:
|
if iplot > 0 or fig_dict:
|
||||||
if fig_dict:
|
if fig_dict:
|
||||||
fig = fig_dict['jackknife']
|
fig = fig_dict['jackknife']
|
||||||
plt_flag = 0
|
plt_flag = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user