Added import tests for matplotlib and numpy at import time

Closes https://github.com/CoolProp/CoolProp/issues/160

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-10-28 14:56:42 -04:00
parent 837ee849c8
commit 12c66d7d36

View File

@@ -1,5 +1,15 @@
from __future__ import absolute_import
try:
import matplotlib
except ImportError:
raise ImportError('It was not possible to import the required package matplotlib. Please install it using your package manager')
try:
import numpy
except ImportError:
raise ImportError('It was not possible to import the required package numpy. Please install it using your package manager')
from .CoolProp import AbstractState
from . import CoolProp
from . import HumidAirProp