Skip to content

Commit

Permalink
fix(ci): fix black issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pmokeev committed Nov 21, 2023
1 parent 45310cd commit 72a7f76
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions octreelib/grid/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ def visualize(self, config: VisualizationConfig = VisualizationConfig()) -> None
color = random.randrange(0, 0xFFFFFF)
leaves = self.get_leaf_points(pose_number=pose_number)
for leaf in leaves:
if leaf.id < len(config.voxels_mask) and not config.voxels_mask[leaf.id]:
if (
leaf.id < len(config.voxels_mask)
and not config.voxels_mask[leaf.id]
):
color = unused_voxel_color

plot += k3d.points(
Expand All @@ -183,7 +186,10 @@ def visualize(self, config: VisualizationConfig = VisualizationConfig()) -> None
for leaf in leaves:
if leaf.id not in voxels_colors.keys():
color = random.randrange(0, 0xFFFFFF)
if leaf.id < len(config.voxels_mask) and not config.voxels_mask[leaf.id]:
if (
leaf.id < len(config.voxels_mask)
and not config.voxels_mask[leaf.id]
):
color = unused_voxel_color

voxels_colors[leaf.id] = color
Expand Down

0 comments on commit 72a7f76

Please sign in to comment.