diff --git a/python/__init__.py b/python/__init__.py index 00df2e69b3..ce6302efa4 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -6,27 +6,6 @@ # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # - -# Attempt to import matplotlib.pyplot and save whether or not this succeeded -try: - import numpy as np - import matplotlib as mpl - import matplotlib.pyplot as plt - havePyPlot=True -except: - havePyPlot=False - print 'Could not import matplotlib.pyplot' - -if havePyPlot: - try: - import networkx as nx - haveNetworkX = True - except: - haveNetworkX = False - print 'Could not import networkx' -else: - haveNetworkX = False - from core import * from blas_like import * from io import * diff --git a/python/io.py b/python/io.py index a4523aed61..d5dae26c8b 100644 --- a/python/io.py +++ b/python/io.py @@ -9,6 +9,26 @@ from El.core import * from El.blas_like import Copy, CopyFromRoot, CopyFromNonRoot, RealPart, ImagPart +# Attempt to import matplotlib.pyplot and save whether or not this succeeded +try: + import numpy as np + import matplotlib as mpl + import matplotlib.pyplot as plt + havePyPlot=True +except: + havePyPlot=False + print 'Could not import matplotlib.pyplot' + +if havePyPlot: + try: + import networkx as nx + haveNetworkX = True + except: + haveNetworkX = False + print 'Could not import networkx' +else: + haveNetworkX = False + # Input/Output # ************