insert assert statement in Picker.py

This commit is contained in:
Sebastian Wehling-Benatelli 2014-12-19 10:50:50 +01:00
parent f5ab88909f
commit 2961867c10

View File

@ -16,6 +16,7 @@ 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
import pdb import pdb
class AutoPicking(object): class AutoPicking(object):
@ -51,7 +52,7 @@ class AutoPicking(object):
:type: float :type: float
''' '''
#assert isinstance(cf, CharFuns), "%s is not a CharacteristicFunction object" % str(cf) assert isinstance(cf, CharacteristicFunction), "%s is not a CharacteristicFunction object" % str(cf)
#wie kann man hier isinstance benutzen? #wie kann man hier isinstance benutzen?
self.cf = cf.getCF() self.cf = cf.getCF()