--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-3-54446973a401> in <module>() 7 from skimage import io 8 from scipy.signal import argrelextrema ----> 9 import hyperspy.hspy as hspy ImportError: No module named hyperspy.hspy
I installed Hyperspy in
C:\Program Files\Hyperspy\python-2.7.4
and my python is in
C:\Python27
any help will be kindly appreciated.
Thanks
--
You received this message because you are subscribed to the Google Groups "hyperspy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyperspy-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--------------------------------------------------------------------------- ImportError Traceback (most recent call last)
<ipython-input-1-6cc9b4f691be> in <module>() ----> 1 import hyperspy.hspy as hspy 2 import numpy as np 3 import matplotlib.pyplot as plt C:\Python27\Lib\site-packages\hyperspy\hspy.py in <module>() 26 matplotlib.rcParams['image.cmap'] = 'gray' 27 from hyperspy import Release ---> 28 from hyperspy import components 29 from hyperspy import signals 30 from hyperspy.io import load C:\Python27\Lib\site-packages\hyperspy\components\__init__.py in <module>() 27 ''' 28 ---> 29 from hyperspy.components.arctan import Arctan 30 from hyperspy.components.bleasdale import Bleasdale 31 from hyperspy.components.eels_double_offset import DoubleOffset C:\Python27\Lib\site-packages\hyperspy\components\arctan.py in <module>() 19 import numpy as np 20 ---> 21 from hyperspy.component import Component 22 23 class Arctan(Component): C:\Python27\Lib\site-packages\hyperspy\component.py in <module>() 21 import numpy as np 22 ---> 23 from hyperspy.defaults_parser import preferences 24 from hyperspy.misc.utils import (incremental_filename, 25 append2pathname, C:\Python27\Lib\site-packages\hyperspy\defaults_parser.py in <module>() 29 from hyperspy.misc.utils import DictionaryBrowser 30 from hyperspy.misc.interactive_ns import turn_logging_on, turn_logging_off ---> 31 from hyperspy.io import default_write_ext 32 33 defaults_file = os.path.join(config_path, 'hyperspyrc') C:\Python27\Lib\site-packages\hyperspy\io.py in <module>() 25 from hyperspy.io_plugins import (msa, digital_micrograph, fei, mrc, 26 ripple, tiff) ---> 27 from hyperspy.gui.tools import Load 28 from hyperspy.misc import utils 29 from hyperspy.misc.utils import (ensure_directory,strlist2enumeration) C:\Python27\Lib\site-packages\hyperspy\gui\tools.py in <module>() 33 from hyperspy.misc.tv_denoise import _tv_denoise_1d 34 from hyperspy.drawing.utils import does_figure_object_exists ---> 35 from hyperspy.gui.mpl_traits_editor import MPLFigureEditor 36 from hyperspy.axes import AxesManager 37 from hyperspy.drawing.widgets import DraggableVerticalLine C:\Python27\Lib\site-packages\hyperspy\gui\mpl_traits_editor.py in <module>() 3 # The author is Gael Varoquaux 4 ----> 5 import wx 6 7 import matplotlib ImportError: No module named wx
I installed the ETS, the Enthought Tool Suite, with traits but I don't know how to sort it out.
Thanks
All the best
Gozdriov
<EELSSpectrum, title: spim01, dimensions: (29, 83, 1440)>
how can I make a np.array that has dimensions (29,83) and in each point the sum or integration of all the EELS?
something like:
s1 = np.array([sum(s[:,:,i]) for i in range(1440)]) ??
Thanks
best
Gozdriov>>> s = signals.Spectrum(np.random.random((83, 29, 1440)))
>>> s
<Spectrum, title: , dimensions: (29, 83, 1440)>end up with the EELS of the 29 rows (or columns) added together, a line of<Spectrum, title: , dimensions: (83, 1440)>It will be equivalent to a DM selection of a row with the cursor on a SI.
Another one. if I just want to sum over a certain range and that the intensity in the image for (x,y) pixel is the value of that sum?something like:im = s.to_image().sum(500:700) ???
and how can I print values?
<EELSSpectrum, title: SP01, dimensions: (29, 83, 1440)>
something similar to estimate_zero_loss_centre but for the starting of an edge and that returns a value for each spectrum???
Thanks
Best
Gozdriov