Skip to content

Commit f87f71b

Browse files
Jammy2211Jammy2211
authored andcommitted
working
1 parent 3e6127d commit f87f71b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoarray/structures/arrays/kernel_2d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import numpy as np
33
import scipy.signal
44
from pathlib import Path
5-
from typing import List, Tuple, Union
5+
from typing import List, Optional, Tuple, Union
66

77
from autoconf.fitsable import header_obj_from
88

@@ -62,6 +62,7 @@ def no_mask(
6262
pixel_scales: ty.PixelScales,
6363
shape_native: Tuple[int, int] = None,
6464
origin: Tuple[float, float] = (0.0, 0.0),
65+
header: Optional[Header] = None,
6566
normalize: bool = False,
6667
):
6768
"""
@@ -90,7 +91,7 @@ def no_mask(
9091
pixel_scales=pixel_scales,
9192
origin=origin,
9293
)
93-
return Kernel2D(values=values, mask=values.mask, normalize=normalize)
94+
return Kernel2D(values=values, mask=values.mask, header=header, normalize=normalize)
9495

9596
@classmethod
9697
def full(

0 commit comments

Comments
 (0)