From f2f17eaf4145c9f34fb73d2e0fe32ae75c817dd4 Mon Sep 17 00:00:00 2001 From: Michal Handzlik Date: Wed, 27 Mar 2019 11:37:07 +0100 Subject: [PATCH] Fix stupid import bug #61 --- recipes/cshadf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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):