[move] pseudo method restituteWFData changed to function restitute_data and moved to dataprocessing

This commit is contained in:
sebastianw committed 2016-09-10 13:24:12 +02:00
1 parent 3d41e0abcd
commit 7c5b8cb646
4 files changed
+143 -140

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@ from pylot.core.util.utils import getPatternLine
from scipy.optimize import curve_fit
from scipy import integrate, signal
from pylot.core.io.data import Data
from pylot.core.util.dataprocessing import restitute_data
class Magnitude(object):
@@ -351,7 +352,7 @@ def calcsourcespec(wfstream, onset, inventory, vp, delta, azimuth, incidence, qp
data = Data()
wf_copy = wfstream.copy()
[cordat, restflag] = data.restituteWFData(inventory, wf_copy)
[cordat, restflag] = restitute_data(wf_copy, inventory)
if restflag == 1:
zdat = cordat.select(component="Z")
if len(zdat) == 0: