From 72a7f76a349ed40cfaa7439349706789442ae4a9 Mon Sep 17 00:00:00 2001 From: Pavel Mokeev Date: Tue, 21 Nov 2023 13:56:46 +0300 Subject: [PATCH] fix(ci): fix black issue --- octreelib/grid/grid.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/octreelib/grid/grid.py b/octreelib/grid/grid.py index 7478d1c..09369da 100644 --- a/octreelib/grid/grid.py +++ b/octreelib/grid/grid.py @@ -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( @@ -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