mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user