Ruben Bjørge
Ruben Bjørge
```python import hyperspy.api as hs import numpy as np from pyxem.signals.diffraction_vectors import DiffractionVectors mysignal = hs.signals.Signal1D(np.array([np.array([[1.,1.], [2.,2.]]),np.array([[3.,3.], [4.,4.]])])).T mypeaks = DiffractionVectors.from_peaks(mysignal, center=(0.,0.), calibration=1.) mypeaks.get_magnitudes() ``` ```python --------------------------------------------------------------------------- TypeError Traceback (most...
While ```python import hyperspy.api as hs import numpy as np from pyxem.signals.diffraction_vectors import DiffractionVectors mysignal = hs.signals.Signal1D(np.array([np.array([[1.,1.], [2.,2.]]),np.array([[3.,3.], [4.,4.]])])).T mypeaks = DiffractionVectors.from_peaks(mysignal, center=(0.,0.), calibration=1.) mypeaks.plot_diffraction_vectors_on_signal(hs.signals.Signal2D(np.zeros((2,10,10)))) ``` gives the following error:...
Thank you, @viljarjf, for adding such a useful feature. I just want to point out that with #946 (due to #925) , `plot_template_over_pattern()` had to be changed (the line with...
I agree that it makes sense to allow different alignments of the Cartesian reference frame in the `Phase` class, since the orientations can come from different sources, and this flexibility...
I realize that this work will be taken up in rosettasciio. However, since there is no .mib-reader there yet I would like to point out that the way `load_mib()` works...
Does mtex do this automatically? [https://mtex-toolbox.github.io/CrystalReferenceSystem.html](https://mtex-toolbox.github.io/CrystalReferenceSystem.html)