There was an error while loading. Please reload this page.
1 parent 1264caf commit 40d9e8cCopy full SHA for 40d9e8c
1 file changed
zernipax/grid.py
@@ -141,9 +141,7 @@ def _scale_weights(self):
141
temp_spacing = (temp_spacing.T / duplicates ** (1 / 3)).T
142
# scale weights sum to full volume
143
if temp_spacing.prod(axis=1).sum():
144
- temp_spacing *= (4 * np.pi**2 / temp_spacing.prod(axis=1).sum()) ** (
145
- 1 / 3
146
- )
+ temp_spacing *= (4 * np.pi**2 / temp_spacing.prod(axis=1).sum()) ** (1 / 3)
147
weights = temp_spacing.prod(axis=1)
148
149
# Spacing is the differential element used for integration over surfaces.
0 commit comments