Skip to content

Commit e0d94fa

Browse files
committed
Fix weights of circular array
1 parent 01d4655 commit e0d94fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sfs/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def circular(N, R, center=[0, 0, 0]):
125125
directions = np.zeros_like(positions)
126126
directions[:, 0] = np.cos(alpha + np.pi)
127127
directions[:, 1] = np.sin(alpha + np.pi)
128-
weights = R * np.ones(N)
128+
weights = 2 * np.pi * R / N * np.ones(N)
129129
return positions, directions, weights
130130

131131

0 commit comments

Comments
 (0)