Some changes to be actual to Python2.7
This commit is contained in:
parent
2d48ad3bb2
commit
41a2e840f8
@ -17,7 +17,6 @@ autoregressive prediction: application ot local and regional distances, Geophys.
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
from pylot.core.pick.CharFuns import CharacteristicFunction
|
from pylot.core.pick.CharFuns import CharacteristicFunction
|
||||||
import pdb
|
|
||||||
|
|
||||||
class AutoPicking(object):
|
class AutoPicking(object):
|
||||||
'''
|
'''
|
||||||
@ -173,7 +172,7 @@ class PragPicker(AutoPicking):
|
|||||||
|
|
||||||
self.Pick = -1
|
self.Pick = -1
|
||||||
#smooth CF
|
#smooth CF
|
||||||
ismooth = round(self.Tsmooth / self.dt);
|
ismooth = int(round(self.Tsmooth / self.dt))
|
||||||
cfsmooth = np.zeros(len(self.cf))
|
cfsmooth = np.zeros(len(self.cf))
|
||||||
if len(self.cf) < ismooth:
|
if len(self.cf) < ismooth:
|
||||||
print 'PragPicker: Tsmooth larger than CF!'
|
print 'PragPicker: Tsmooth larger than CF!'
|
||||||
|
Loading…
Reference in New Issue
Block a user