Git Product home page Git Product logo

Comments (3)

ericpre avatar ericpre commented on July 18, 2024

I can't reproduce: I have just tried with the development branch and it is working fine. The signal_registration tests pass on travis: https://travis-ci.org/github/ericpre/lumispy/builds/740491810.

Can you try to re-install lumispy?

import hyperspy.api as hs
hs.print_known_signal_types()

Out:

+----------------------------+----------------------------------+----------------------------+----------+
|        signal_type         |             aliases              |         class name         | package  |
+----------------------------+----------------------------------+----------------------------+----------+
|           CL_SEM           |  CLSEM, cathodoluminescence SEM  |       CLSEMSpectrum        | lumispy  |
|          CL_STEM           | CLSTEM, cathodoluminescence STEM |       CLSTEMSpectrum       | lumispy  |
|             CL             |     CL, cathodoluminescence      |         CLSpectrum         | lumispy  |
|        correlation         |                                  |       Correlation2D        |  pyxem   |
|    crystallographic_map    |                                  |    CrystallographicMap     |  pyxem   |
|            dpc             |                                  |       DPCBaseSignal        |  pyxem   |
|            dpc             |                                  |        DPCSignal1D         |  pyxem   |
|            dpc             |                                  |        DPCSignal2D         |  pyxem   |
|     DielectricFunction     |       dielectric function        |     DielectricFunction     | hyperspy |
|        diffraction         |                                  |       Diffraction1D        |  pyxem   |
|        diffraction         |                                  |       Diffraction2D        |  pyxem   |
|    diffraction_variance    |                                  |   DiffractionVariance1D    |  pyxem   |
|    diffraction_variance    |                                  |   DiffractionVariance2D    |  pyxem   |
|    diffraction_vectors     |                                  |     DiffractionVectors     |  pyxem   |
|    diffraction_vectors     |                                  |    DiffractionVectors2D    |  pyxem   |
|        tensor_field        |                                  |  DisplacementGradientMap   |  pyxem   |
|          EDS_SEM           |                                  |       EDSSEMSpectrum       | hyperspy |
|          EDS_TEM           |                                  |       EDSTEMSpectrum       | hyperspy |
|            EELS            |             TEM EELS             |        EELSSpectrum        | hyperspy |
|             EL             |     EL, electroluminescence      |         ELSpectrum         | lumispy  |
|    electron_diffraction    |                                  |   ElectronDiffraction1D    |  pyxem   |
|    electron_diffraction    |                                  |   ElectronDiffraction2D    |  pyxem   |
|          hologram          |                                  |       HologramImage        | hyperspy |
|        Luminescence        |       LuminescenceSpectrum       |        LumiSpectrum        | lumispy  |
|        Luminescence        |     TRLumi, TR luminescence      |       LumiTransient        | lumispy  |
|             PL             |      PL, photoluminescence       |         PLSpectrum         | lumispy  |
| pair_distribution_function |                                  | PairDistributionFunction1D |  pyxem   |
|     polar_diffraction      |                                  |     PolarDiffraction2D     |  pyxem   |
|           power            |                                  |          Power2D           |  pyxem   |
|     reduced_intensity      |                                  |     ReducedIntensity1D     |  pyxem   |
|     template_matching      |                                  |  TemplateMatchingResults   |  pyxem   |
|         vdf_image          |                                  |          VDFImage          |  pyxem   |
|      vector_matching       |                                  |   VectorMatchingResults    |  pyxem   |
+----------------------------+----------------------------------+----------------------------+----------+
s = hs.signals.Signal1D(np.arange(100))
s.set_signal_type('CL_SEM')
print(s)

Out:

<CLSEMSpectrum, title: , dimensions: (|100)>

from lumispy.

jlaehne avatar jlaehne commented on July 18, 2024

Same here, signal is correctly registered into HyperSpy.

Loading the Gatan Demo files from lumispy-demos, the signal type is automatically set correctly:
<CLSpectrum, title: NW008-1_9k_spec1, dimensions: (|1336)>
(same for Attolight demos, there setting CLSEMSpectrum)

If I remember correctly, you had that issue before, no?

from lumispy.

jordiferrero avatar jordiferrero commented on July 18, 2024

Solved.
Windows has recently been giving me some issues.

from lumispy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.