From ce4ac4fd043d002fcaf3083c608fde3430c33feb Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Mon, 19 Sep 2016 11:36:51 +0200 Subject: [PATCH] [pep8] use naming and style conventions --- pylot/core/analysis/magnitude.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pylot/core/analysis/magnitude.py b/pylot/core/analysis/magnitude.py index 8ec44a92..a7a2befa 100644 --- a/pylot/core/analysis/magnitude.py +++ b/pylot/core/analysis/magnitude.py @@ -380,10 +380,10 @@ def calcsourcespec(wfstream, onset, inventory, vp, delta, azimuth, incidence, qp # integrate to displacement # unrotated vertical component (for copmarison) - inttrz = signal.detrend(integrate.cumtrapz(zdat[0].data, None, \ + inttrz = signal.detrend(integrate.cumtrapz(zdat[0].data, None, zdat[0].stats.delta)) # rotated component Z => L - Ldat = signal.detrend(integrate.cumtrapz(ldat[0].data, None, \ + Ldat = signal.detrend(integrate.cumtrapz(ldat[0].data, None, ldat[0].stats.delta)) # get window after P pulse for @@ -455,7 +455,8 @@ def calcsourcespec(wfstream, onset, inventory, vp, delta, azimuth, incidence, qp # use of implicit scipy otimization function fit = synthsourcespec(F, w0in, Fcin) - [optspecfit, pcov] = curve_fit(synthsourcespec, F, YYcor, [w0in, Fcin]) + [optspecfit, _] = curve_fit(synthsourcespec, F, YYcor, [w0in, + Fcin]) w01 = optspecfit[0] fc1 = optspecfit[1] print ("calcsourcespec: Determined w0-value: %e m/Hz, \n"