Skip to content

Commit 5c98f9a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c7216d5 commit 5c98f9a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

simpeg_drivers/components/meshes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ def ensure_cell_convention(mesh: Octree) -> TreeMesh | None:
227227
attr = f"{dim}_cell_size"
228228
setattr(mesh, attr, np.abs(getattr(mesh, attr)))
229229

230-
indices = treemesh.get_containing_cells(
231-
mesh.centroids
232-
)
230+
indices = treemesh.get_containing_cells(mesh.centroids)
233231
ind = np.argsort(indices)
234232
for child in mesh.children:
235233
if child.values is None or isinstance(child.values, np.ndarray):

0 commit comments

Comments
 (0)