Skip to content

Commit 73fb5c6

Browse files
made warnings less scary
1 parent e442bf9 commit 73fb5c6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pymultinest/__init__.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818
try:
1919
from .run import run
2020
except ImportError as e:
21-
print(e)
22-
print('WARNING: no running available -- check library and error above')
23-
print('Only MultiNest analysing capabilities enabled.')
21+
print('WARNING: Only MultiNest analysing capabilities enabled, no running.')
22+
print('WARNING: check installed packages (import failed with: "%s")' % e)
2423
from .analyse import Analyzer
2524
try:
2625
from .watch import ProgressWatcher, ProgressPrinter, ProgressPlotter
2726
from .plot import PlotMarginal, PlotMarginalModes
2827
except ImportError as e:
29-
print(e)
30-
print('WARNING: no plotting available -- check matplotlib installation and error above')
31-
print('Only MultiNest run capabilities enabled.')
28+
print('WARNING: Only MultiNest run capabilities enabled, no plotting available')
29+
print('WARNING: check matplotlib installation (import failed with "%s")' % e)
3230

0 commit comments

Comments
 (0)