|
|
@ -1519,8 +1519,8 @@ class Spreading(object):
|
|
|
|
|
|
|
|
|
|
|
|
@method.setter
|
|
|
|
@method.setter
|
|
|
|
def method(self, method):
|
|
|
|
def method(self, method):
|
|
|
|
methods = {'n': None, 'm': 'mitsuyasu', 'd': 'donelan', 'b':'banner',
|
|
|
|
methods = {'n': None, 'm': 'mitsuyasu', 'd': 'donelan', 'b': 'banner',
|
|
|
|
0: None, 1: 'mitsuyasu', 2: 'donelan', 3:'banner',
|
|
|
|
0: None, 1: 'mitsuyasu', 2: 'donelan', 3: 'banner',
|
|
|
|
None: None}
|
|
|
|
None: None}
|
|
|
|
m = method if not isinstance(method, str) else method[0].lower()
|
|
|
|
m = method if not isinstance(method, str) else method[0].lower()
|
|
|
|
try:
|
|
|
|
try:
|
|
|
@ -1987,7 +1987,7 @@ class Spreading(object):
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def _check_theta(theta):
|
|
|
|
def _check_theta(theta):
|
|
|
|
L = abs(theta[-1] - theta[0])
|
|
|
|
L = abs(theta[-1] - theta[0])
|
|
|
|
if abs(L - np.pi) > _EPS:
|
|
|
|
if abs(L - 2 * np.pi) > _EPS:
|
|
|
|
raise ValueError('theta must cover all angles -pi -> pi')
|
|
|
|
raise ValueError('theta must cover all angles -pi -> pi')
|
|
|
|
nt = len(theta)
|
|
|
|
nt = len(theta)
|
|
|
|
if nt < 40:
|
|
|
|
if nt < 40:
|
|
|
|