Skip to content

Commit 40d9e8c

Browse files
committed
format black
1 parent 1264caf commit 40d9e8c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

zernipax/grid.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ def _scale_weights(self):
141141
temp_spacing = (temp_spacing.T / duplicates ** (1 / 3)).T
142142
# scale weights sum to full volume
143143
if temp_spacing.prod(axis=1).sum():
144-
temp_spacing *= (4 * np.pi**2 / temp_spacing.prod(axis=1).sum()) ** (
145-
1 / 3
146-
)
144+
temp_spacing *= (4 * np.pi**2 / temp_spacing.prod(axis=1).sum()) ** (1 / 3)
147145
weights = temp_spacing.prod(axis=1)
148146

149147
# Spacing is the differential element used for integration over surfaces.

0 commit comments

Comments
 (0)