Replaced method with staticmethod

master
Per A Brodtkorb 7 years ago
parent c538ae9687
commit cb6f276588

@ -1985,7 +1985,8 @@ class Spreading(object):
return where(x < 100., xk / sinh(xk), return where(x < 100., xk / sinh(xk),
-2. * xk / (exp(xk) * expm1(-2. * xk))) -2. * xk / (exp(xk) * expm1(-2. * xk)))
def _check_theta(self, theta): @staticmethod
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 - np.pi) > _EPS:
raise ValueError('theta must cover all angles -pi -> pi') raise ValueError('theta must cover all angles -pi -> pi')

Loading…
Cancel
Save