Skip to content

Commit

Permalink
fix: 🚑 import failing when surfepy not install
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Mar 4, 2022
1 parent a7df351 commit 5041ad6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LoopStructural/interpolators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ class InterpolatorType(IntEnum):
from LoopStructural.interpolators._discrete_fold_interpolator import (
DiscreteFoldInterpolator,
)
from LoopStructural.interpolators._surfe_wrapper import SurfeRBFInterpolator

try:
from LoopStructural.interpolators._surfe_wrapper import SurfeRBFInterpolator
except ImportError:
logger.warning("Can't import surfepy - to install \"pip install surfe\"")

logger.warning(
"Using experimental interpolators: P1Interpolator and P2Interpolator"
Expand Down

0 comments on commit 5041ad6

Please sign in to comment.