Skip to content

Commit

Permalink
switching njit to jit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Jan 19, 2023
1 parent 6570c23 commit aae370b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpnm/_skgraph/generators/tools/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np
from openpnm._skgraph import tools
import scipy.spatial as sptl
from numba import njit
from numba import jit


__all__ = [
Expand Down Expand Up @@ -92,7 +92,7 @@ def get_centroid(pts, mode='rigorous'):
return CoM


@njit
@jit
def center_of_mass(simplices, points):
A = []
centroids = np.zeros((simplices.shape[0], points.shape[1]), dtype=np.float_)
Expand Down

0 comments on commit aae370b

Please sign in to comment.