Skip to content

Commit 482eab5

Browse files
committed
change variable names to be different than function
1 parent 11527dd commit 482eab5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/aspire/utils/misc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def circ(size, x0=0, y0=0, radius=1, peak=1, dtype=np.float64):
163163
# Construct centered mesh
164164
g = grid_2d(size, shifted=True, normalized=False, dtype=dtype)
165165

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

169169

170170
def inverse_r(size, x0=0, y0=0, peak=1, dtype=np.float64):
@@ -187,6 +187,6 @@ def inverse_r(size, x0=0, y0=0, peak=1, dtype=np.float64):
187187
g = grid_2d(size, shifted=True, normalized=False, dtype=dtype)
188188

189189
# Compute the denominator
190-
circ = np.sqrt(1 + (g["x"] - x0) ** 2 + (g["y"] - y0) ** 2)
190+
vals = np.sqrt(1 + (g["x"] - x0) ** 2 + (g["y"] - y0) ** 2)
191191

192-
return (peak / circ).astype(dtype)
192+
return (peak / vals).astype(dtype)

0 commit comments

Comments
 (0)