Skip to content

Commit 282a0c8

Browse files
committed
Remove stray __call__ implementation; this is no longer needed here
1 parent bbadd88 commit 282a0c8

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

‎astropy/modeling/polynomial.py‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -396,23 +396,9 @@ def prepare_inputs(self, x, **kwargs):
396396
return (x,), format_info
397397

398398
@classmethod
399-
def evaluate(x, *coeffs):
399+
def evaluate(cls, x, *coeffs):
400400
return cls.clenshaw(x, coeffs)
401401

402-
def __call__(self, x, model_set_axis=None):
403-
"""
404-
Transforms data using this model.
405-
406-
Parameters
407-
--------------
408-
x : scalar, list or array
409-
input
410-
"""
411-
412-
if self.domain is not None:
413-
x = poly_map_domain(x, self.domain, self.window)
414-
return self.clenshaw(x, self.param_sets)
415-
416402
@staticmethod
417403
def clenshaw(x, coeffs):
418404
"""Evaluates the polynomial using Clenshaw's algorithm."""

0 commit comments

Comments
 (0)