diff --git a/recipes/cshadf.py b/recipes/cshadf.py index 2f03b9c3..584a7125 100644 --- a/recipes/cshadf.py +++ b/recipes/cshadf.py @@ -1,5 +1,4 @@ import numpy as np -from scm.csh import CSHessian from ..core.basejob import MultiJob from ..core.errors import JobError @@ -7,9 +6,13 @@ from ..interfaces.adfsuite.adf import ADFJob from ..tools.units import Units - __all__ = ['CSHessianADFJob', 'CSHessianADFResults'] +try: + from scm.csh import CSHessian +except ImportError: + __all__ = [] + class CSHessianADFResults(Results): def get_hessian(self):