Skip to content

Commit

Permalink
Remove local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Aug 26, 2024
1 parent 7b9b4d6 commit 8c46889
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pytransform3d/uncertainty.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,10 @@ def to_projected_ellipsoid(mean, cov, factor=1.96, n_steps=20):
radii = factor * np.sqrt(vals[:3])

# Grid on ellipsoid in exponential coordinate space
radius_x, radius_y, radius_z = radii
x, y, z = unit_sphere_surface_grid(n_steps)
x *= radius_x
y *= radius_y
z *= radius_z
x *= radii[0]
y *= radii[1]
z *= radii[2]
P = np.column_stack((x.reshape(-1), y.reshape(-1), z.reshape(-1)))
P = np.dot(P, vecs[:, :3].T)

Expand Down

0 comments on commit 8c46889

Please sign in to comment.