Skip to content

Commit c7f3543

Browse files
committed
add err msg if fail to import cloelib
1 parent 74476e3 commit c7f3543

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spaceborne/cov_cosebis.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
import itertools
66
import warnings
77

8-
import cloelib.auxiliary.cosebi_helpers as ch
8+
try:
9+
import cloelib.auxiliary.cosebi_helpers as ch
10+
except ImportError as e:
11+
raise ImportError(
12+
'cloelib is required to compute COSEBIs covariance. '
13+
'Please install it and rerun the code.'
14+
) from e
15+
916
import numpy as np
1017
from scipy.integrate import simpson as simps
1118

0 commit comments

Comments
 (0)