5757 removal_version ,
5858)
5959
60+ setCalculationPoints_dep_msg = build_deprecation_message (
61+ base ,
62+ "setCalculationPoints" ,
63+ "set_calculation_points" ,
64+ removal_version ,
65+ )
66+
6067
6168class Profile (Observable , Validatable ):
6269 """Observed and calculated profile container.
@@ -202,9 +209,9 @@ def set_observed_profile(self, xobs, yobs, dyobs=None):
202209
203210 # Set the default calculation points
204211 if self .x is None :
205- self .setCalculationPoints (self ._xobs )
212+ self .set_calculation_points (self ._xobs )
206213 else :
207- self .setCalculationPoints (self .x )
214+ self .set_calculation_points (self .x )
208215
209216 return
210217
@@ -321,7 +328,7 @@ def _isobs(a):
321328 self .dy = self .dyobs [indices ]
322329 else :
323330 x1 = numpy .arange (lo , hi + epshi , step )
324- self .setCalculationPoints (x1 )
331+ self .set_calculation_points (x1 )
325332 return
326333
327334 @deprecated (setCalculationRange_dep_msg )
@@ -336,7 +343,7 @@ def setCalculationRange(self, xmin=None, xmax=None, dx=None):
336343 self .set_calculation_range (xmin , xmax , dx )
337344 return
338345
339- def setCalculationPoints (self , x ):
346+ def set_calculation_points (self , x ):
340347 """Set the calculation points.
341348
342349 Parameters
@@ -366,6 +373,22 @@ def setCalculationPoints(self, x):
366373
367374 return
368375
376+ @deprecated (setCalculationPoints_dep_msg )
377+ def setCalculationPoints (self , x ):
378+ """Set the calculation points.
379+
380+ Parameters
381+ ----------
382+ x
383+ A non-empty numpy array containing the calculation points. If
384+ xobs exists, the bounds of x will be limited to its bounds.
385+
386+ This will create y and dy on the specified grid if xobs, yobs and
387+ dyobs exist.
388+ """
389+ self .set_calculation_points (x )
390+ return
391+
369392 def loadtxt (self , * args , ** kw ):
370393 """Use numpy.loadtxt to load data.
371394
0 commit comments