Skip to content

Commit

Permalink
Fix QhullError warning (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaFicarelli committed Sep 30, 2022
1 parent acbba0f commit d352b7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion neurom/morphmath.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@

import numpy as np
from scipy.spatial import ConvexHull
from scipy.spatial.qhull import QhullError
from scipy.spatial.distance import cdist

try:
# The QhulError was moved in scipy >= 1.8 so if the import fails the old location is imported
from scipy.spatial import QhullError
except ImportError: # pragma: no cover
from scipy.spatial.qhull import QhullError

from neurom.core.dataformat import COLS


Expand Down

0 comments on commit d352b7c

Please sign in to comment.