Skip to content

Commit 11527dd

Browse files
committed
circ was not using peak argument
1 parent a072712 commit 11527dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aspire/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def circ(size, x0=0, y0=0, radius=1, peak=1, dtype=np.float64):
164164
g = grid_2d(size, shifted=True, normalized=False, dtype=dtype)
165165

166166
circ = ((g["x"] - x0) ** 2 + (g["y"] - y0) ** 2) < radius * radius
167-
return circ.astype(dtype)
167+
return (peak * circ).astype(dtype)
168168

169169

170170
def inverse_r(size, x0=0, y0=0, peak=1, dtype=np.float64):

0 commit comments

Comments
 (0)