@@ -56,22 +56,22 @@ def full(cls, fill_value, shape_2d, pixel_scales=None, sub_size=1, origin=(0.0,
5656 if sub_size is not None :
5757 shape_2d = (shape_2d [0 ] * sub_size , shape_2d [1 ] * sub_size )
5858
59- return cls .manual_2d (array = np .full (fill_value = fill_value , shape = shape_2d ), pixel_scales = pixel_scales , origin = origin )
59+ return Kernel .manual_2d (array = np .full (fill_value = fill_value , shape = shape_2d ), pixel_scales = pixel_scales , origin = origin )
6060
6161 @classmethod
6262 def ones (cls , shape_2d , pixel_scales = None , origin = (0.0 , 0.0 )):
63- return cls .full (fill_value = 1.0 , shape_2d = shape_2d , pixel_scales = pixel_scales , origin = origin )
63+ return Kernel .full (fill_value = 1.0 , shape_2d = shape_2d , pixel_scales = pixel_scales , origin = origin )
6464
6565 @classmethod
6666 def zeros (cls , shape_2d , pixel_scales = None , origin = (0.0 , 0.0 )):
67- return cls .full (fill_value = 0.0 , shape_2d = shape_2d , pixel_scales = pixel_scales , origin = origin )
67+ return Kernel .full (fill_value = 0.0 , shape_2d = shape_2d , pixel_scales = pixel_scales , origin = origin )
6868
6969 @classmethod
7070 def no_blur (cls , pixel_scales = None ):
7171
7272 array = np .array ([[0.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , 0.0 ]])
7373
74- return cls .manual_2d (array = array , pixel_scales = pixel_scales )
74+ return Kernel .manual_2d (array = array , pixel_scales = pixel_scales )
7575
7676 @classmethod
7777 def from_gaussian (
@@ -142,7 +142,7 @@ def from_fits(cls, file_path, hdu, pixel_scales=None, origin=(0.0, 0.0), renorma
142142 file_path = file_path , hdu = hdu ,
143143 pixel_scales = pixel_scales , origin = origin )
144144
145- return Kernel (array_1d = array , mask = array .mask , renormalize = renormalize )
145+ return Kernel (array_1d = array [:] , mask = array .mask , renormalize = renormalize )
146146
147147 def rescaled_with_odd_dimensions_from_rescale_factor (
148148 self , rescale_factor , renormalize = False
0 commit comments