Commit c87ffea0 authored by Mayank Mittal's avatar Mayank Mittal

Runs pre-commit formatter over the code

parent dcc33a26
......@@ -145,8 +145,8 @@ def create_pointcloud_from_depth(
# convert 3D points to world frame
depth_cloud = math_utils.transform_points(depth_cloud, position, orientation)
# keep only valid entries if flag is set
if not keep_invalid:
# keep only valid entries
pts_idx_to_keep = torch.all(torch.logical_and(~torch.isnan(depth_cloud), ~torch.isinf(depth_cloud)), dim=1)
depth_cloud = depth_cloud[pts_idx_to_keep, ...]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment