Skip to content

Commit

Permalink
Update particula/next/particle.py
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
Gorkowski and sourcery-ai[bot] committed Mar 22, 2024
1 parent f3e44a3 commit f5c1323
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions particula/next/particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ def get_radius(
"""
# Calculate volume from mass and density, then derive radius
volumes = np.sum(distribution / density, axis=0)
radii = (3 * volumes / (4 * np.pi)) ** (1 / 3)
return radii
return (3 * volumes / (4 * np.pi)) ** (1 / 3)

def get_total_mass(
self,
Expand Down

0 comments on commit f5c1323

Please sign in to comment.