Skip to content

Commit

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


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


@jit
# This function is causing all kinds of problems on the CI. It is working on
# Ubuntu, Py3.8, but failing on all others. It is working locally, windows with
# Py3.9. jit and njit both fail for different reasons. Anyway, the slow part
# is the tessellation of the points, not this actually CoM calculation
# so I'm commenting out the decorator for now.
# @njit
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 d7d9b5b

Please sign in to comment.