Skip to content

Commit

Permalink
fix black 🙄
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Feb 5, 2024
1 parent d6678fa commit 7280a01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions octreelib/grid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains base classes and implementations for Grid, GridConfig
"""

import octreelib.grid.grid_base as grid_base_module
import octreelib.grid.grid as grid_module

Expand Down
1 change: 1 addition & 0 deletions octreelib/internal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains library's internal classes, functions and definitions
"""

import octreelib.internal.interfaces as interfaces_module
import octreelib.internal.point as point_module
import octreelib.internal.typing as typing_module
Expand Down
4 changes: 1 addition & 3 deletions octreelib/octree/octree.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def n_leaves(self):
return (
sum([child.n_leaves for child in self._children])
if self._has_children
else 1
if len(self._points) != 0
else 0
else 1 if len(self._points) != 0 else 0
)

@property
Expand Down

0 comments on commit 7280a01

Please sign in to comment.