Skip to content

Commit

Permalink
Fix linting pyt-team#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Rygiel committed Jul 8, 2024
1 parent c75e4b0 commit 72a9fae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/data/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ def load_pointcloud_dataset(cfg):

if cfg.pos_to_x:
return torch_geometric.data.Data(x=pos, pos=pos, num_nodes=num_points)
else:
return torch_geometric.data.Data(pos=pos, num_nodes=num_points)

return torch_geometric.data.Data(pos=pos, num_nodes=num_points)


def load_manual_pointcloud(pos_to_x: bool = False):
Expand Down Expand Up @@ -485,8 +485,8 @@ def load_manual_pointcloud(pos_to_x: bool = False):
pos=pos,
num_nodes=len(pos),
)
else:
return torch_geometric.data.Data(
pos=pos,
num_nodes=len(pos),
)

return torch_geometric.data.Data(
pos=pos,
num_nodes=len(pos),
)

0 comments on commit 72a9fae

Please sign in to comment.