@@ -331,7 +331,7 @@ def circular(
331331 )
332332
333333 return cls (
334- mask = np . array ( mask ) ,
334+ mask = mask ,
335335 pixel_scales = pixel_scales ,
336336 origin = origin ,
337337 invert = invert ,
@@ -385,7 +385,7 @@ def circular_annular(
385385 )
386386
387387 return cls (
388- mask = np . array ( mask ) ,
388+ mask = mask ,
389389 pixel_scales = pixel_scales ,
390390 origin = origin ,
391391 invert = invert ,
@@ -442,7 +442,7 @@ def elliptical(
442442 )
443443
444444 return cls (
445- mask = np . array ( mask ) ,
445+ mask = mask ,
446446 pixel_scales = pixel_scales ,
447447 origin = origin ,
448448 invert = invert ,
@@ -512,7 +512,7 @@ def elliptical_annular(
512512 )
513513
514514 return cls (
515- mask = np . array ( mask ) ,
515+ mask = mask ,
516516 pixel_scales = pixel_scales ,
517517 origin = origin ,
518518 invert = invert ,
@@ -560,7 +560,7 @@ def from_pixel_coordinates(
560560 )
561561
562562 return cls (
563- mask = np . array ( mask ) ,
563+ mask = mask ,
564564 pixel_scales = pixel_scales ,
565565 origin = origin ,
566566 invert = invert ,
@@ -598,7 +598,7 @@ def from_fits(
598598 mask = np .invert (mask .astype ("bool" ))
599599
600600 mask = Mask2D (
601- mask = np . array ( mask ) ,
601+ mask = mask ,
602602 pixel_scales = pixel_scales ,
603603 origin = origin ,
604604 )
@@ -680,7 +680,7 @@ def header_dict(self) -> Dict:
680680 @property
681681 def mask_centre (self ) -> Tuple [float , float ]:
682682 grid = grid_2d_util .grid_2d_slim_via_mask_from (
683- mask_2d = np . array ( self ) ,
683+ mask_2d = self ,
684684 pixel_scales = self .pixel_scales ,
685685 origin = self .origin ,
686686 )
@@ -697,7 +697,7 @@ def shape_native_masked_pixels(self) -> Tuple[int, int]:
697697 and 12 False entries going horizontally in the central regions of the mask, then shape_masked_pixels=(15,12).
698698 """
699699
700- where = np .array ( np . where (np .invert (self .astype ("bool" ) )))
700+ where = np .where (np .invert (self .astype ("bool" )))
701701 y0 , x0 = np .amin (where , axis = 1 )
702702 y1 , x1 = np .amax (where , axis = 1 )
703703
0 commit comments