diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 67769430..9f4ddf13 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -60a2-dirty +819e-dirty diff --git a/pylot/core/io/phases.py b/pylot/core/io/phases.py index 55a496e2..fa0e7587 100644 --- a/pylot/core/io/phases.py +++ b/pylot/core/io/phases.py @@ -255,10 +255,15 @@ def picksdict_from_picks(evt): lpp = mpp + pick.time_errors.upper_uncertainty epp = mpp - pick.time_errors.lower_uncertainty except TypeError as e: - msg = e + ',\n falling back to symmetric uncertainties' + if not spe: + msg = 'No uncertainties found for pick: {}. Uncertainty set to 0'.format(pick) + lpp = mpp + epp = mpp + else: + msg = str(e) + ',\n falling back to symmetric uncertainties' + lpp = mpp + spe + epp = mpp - spe warnings.warn(msg) - lpp = mpp + spe - epp = mpp - spe phase['mpp'] = mpp phase['epp'] = epp phase['lpp'] = lpp diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 2582dcc8..37161a80 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -987,6 +987,7 @@ class PylotCanvas(FigureCanvas): times = [time for index, time in enumerate(time_ax) if not index % nth_sample] data = [datum + n for index, datum in enumerate(trace.data) if not index % nth_sample] + ax.axhline(n, color="0.5", lw=0.5) ax.plot(times, data, color=linecolor, linewidth=0.7) if noiselevel is not None: for level in [-noiselevel[channel], noiselevel[channel]]: