Closed hakonanes closed 1 year ago
The warning is only raised when the original signal the VirtualBSEImage is created from is a LazyEBSD instance. Seems like the VirtualBSEImage class is not available to lazy signals.
import numpy as np
import hyperspy.api as hs
s = hs.signals.BaseSignal(np.ones((10, 10)))
print(s)
s.set_signal_type('VirtualBSEImage')
print(s)
s_lazy = s.as_lazy()
print(s_lazy)
Give the following output:
<BaseSignal, title: , dimensions: (|10, 10)>
<VirtualBSEImage, title: , dimensions: (|10, 10)>
<LazyVirtualBSEImage, title: , dimensions: (|10, 10)>
I seems that it has been fixed in https://github.com/pyxem/kikuchipy/pull/605.
With HyperSpy v1.6.5 and kikuchipy v0.6.dev0, the warning
is emitted even though the signal type is in the list
I'll provide more information and investigate further in the near future.