Skip to content

Commit

Permalink
fix: raise error if cython can't be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Jun 22, 2022
1 parent 6347742 commit f5b82eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LoopStructural/interpolators/piecewiselinear_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
Piecewise linear interpolator
"""
import numpy as np
from LoopStructural.interpolators._cython.dsi_helper import cg, fold_cg

try:
from LoopStructural.interpolators._cython.dsi_helper import cg, fold_cg
except ModuleNotFoundError:
raise ImportError('Cython compiled code not found')
from LoopStructural.interpolators import DiscreteInterpolator
from LoopStructural.interpolators import InterpolatorType

Expand Down

0 comments on commit f5b82eb

Please sign in to comment.