Skip to content

Commit dd6a26f

Browse files
committed
whoops, some crud left from moving stuff around
1 parent 256f41e commit dd6a26f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ccdproc/combiner.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,14 @@ def combiner_method(self, combine_func=ma.median, scale_to=None):
381381
deviation does not account for rejected pixels.
382382
"""
383383
if scale_to is not None:
384-
self.scalings = scale_to
384+
scalings = scale_to
385385
elif self.scaling is not None:
386-
self.scalings = self.scaling
386+
scalings = self.scaling
387387
else:
388-
self.scalings = 1.0
388+
scalings = 1.0
389389

390390
# set the data
391-
data = combine_func(self.scalings * self.data_arr, axis=0)
391+
data = combine_func(scalings * self.data_arr, axis=0)
392392

393393
# set the mask
394394
masked_values = self.data_arr.mask.sum(axis=0)
@@ -478,14 +478,14 @@ def combiner_method(self, combine_func=ma.average, scale_to=None):
478478
CCDData object based on the combined input of CCDData objects.
479479
"""
480480
if scale_to is not None:
481-
self.scalings = scale_to
481+
scalings = scale_to
482482
elif self.scaling is not None:
483-
self.scalings = self.scaling
483+
scalings = self.scaling
484484
else:
485-
self.scalings = 1.0
485+
scalings = 1.0
486486

487487
# set up the data
488-
data, wei = combine_func(self.scalings * self.data_arr,
488+
data, wei = combine_func(scalings * self.data_arr,
489489
axis=0, weights=self.weights,
490490
returned=True)
491491

@@ -571,14 +571,14 @@ def combiner_method(self, combine_func=ma.sum, scale_to=None):
571571
CCDData object based on the combined input of CCDData objects.
572572
"""
573573
if scale_to is not None:
574-
self.scalings = scale_to
574+
scalings = scale_to
575575
elif self.scaling is not None:
576-
self.scalings = self.scaling
576+
scalings = self.scaling
577577
else:
578-
self.scalings = 1.0
578+
scalings = 1.0
579579

580580
# set up the data
581-
data = combine_func(self.scalings * self.data_arr, axis=0)
581+
data = combine_func(scalings * self.data_arr, axis=0)
582582

583583
# set up the mask
584584
masked_values = self.data_arr.mask.sum(axis=0)

0 commit comments

Comments
 (0)