Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
empyre
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dieter Weber
empyre
Commits
dc262fd8
Commit
dc262fd8
authored
10 years ago
by
Jörn Ungermann
Browse files
Options
Downloads
Patches
Plain Diff
moved import of uncommon libraries into routines requiring them.
parent
a453cbad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyramid/magdata.py
+4
-3
4 additions, 3 deletions
pyramid/magdata.py
with
4 additions
and
3 deletions
pyramid/magdata.py
+
4
−
3
View file @
dc262fd8
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment