Skip to content

Commit 7443c6a

Browse files
committed
make _rebin_array private
1 parent 36957e0 commit 7443c6a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/diffpy/srfit/fitbase/profile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,15 @@ def set_calculation_points(self, x):
361361
x = x[x <= self.xobs[-1] + epsilon]
362362
self.x = x
363363
if self.yobs is not None:
364-
self.y = rebin_array(self.yobs, self.xobs, self.x)
364+
self.y = _rebin_array(self.yobs, self.xobs, self.x)
365365
if self.dyobs is not None:
366366
# work around for interpolation issue making some of these non-1
367367
if (self.dyobs == 1).all():
368368
self.dy = numpy.ones_like(self.x)
369369
else:
370370
# FIXME - This does not follow error propagation rules and it
371371
# introduces (more) correlation between the data points.
372-
self.dy = rebin_array(self.dyobs, self.xobs, self.x)
372+
self.dy = _rebin_array(self.dyobs, self.xobs, self.x)
373373

374374
return
375375

@@ -500,7 +500,7 @@ def _validate(self):
500500
# End class Profile
501501

502502

503-
def rebin_array(A, xold, xnew):
503+
def _rebin_array(A, xold, xnew):
504504
"""Rebin the an array by interpolating over the new x range.
505505
506506
Parameters

0 commit comments

Comments
 (0)