Skip to content
Snippets Groups Projects
Commit dc262fd8 authored by Jörn Ungermann's avatar Jörn Ungermann
Browse files

moved import of uncommon libraries into routines requiring them.

parent a453cbad
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,6 @@ from scipy.ndimage.interpolation import zoom ...@@ -11,9 +11,6 @@ from scipy.ndimage.interpolation import zoom
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import matplotlib.cm as cmx import matplotlib.cm as cmx
from matplotlib.ticker import MaxNLocator from matplotlib.ticker import MaxNLocator
from mayavi import mlab
from lxml import etree
from numbers import Number from numbers import Number
...@@ -519,6 +516,8 @@ class MagData(object): ...@@ -519,6 +516,8 @@ class MagData(object):
''' '''
self.LOG.debug('Calling quiver_plot3D') self.LOG.debug('Calling quiver_plot3D')
from mayavi import mlab
a = self.a a = self.a
dim = self.dim dim = self.dim
# Create points and vector components as lists: # Create points and vector components as lists:
...@@ -553,6 +552,8 @@ class MagData(object): ...@@ -553,6 +552,8 @@ class MagData(object):
''' '''
self.LOG.debug('Calling save_to_x3d') self.LOG.debug('Calling save_to_x3d')
from lxml import etree
dim = self.dim dim = self.dim
# Create points and vector components as lists: # Create points and vector components as lists:
zz, yy, xx = np.mgrid[0.5:(dim[0]-0.5):dim[0]*1j, zz, yy, xx = np.mgrid[0.5:(dim[0]-0.5):dim[0]*1j,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment