Open Divyadeep00 opened 4 months ago
By any chance, do you have any NaN in your data? If so, you should use https://hyperspy.org/hyperspy-doc/dev/reference/api.signals/BaseSignal.html#hyperspy.api.signals.BaseSignal.nansum
but if the reason is the NaN value than default view eds viewer should also show flat, but it is showing signals
No, the default pointer doesn't take the sum.
but the provided image both have same pixel, size, default pointer is giving values but sum pointer not, as you can see in the provided image also.
in this image both pixcel is overlap
Have you tried to use nansum
instead of sum
as suggested above? e.g. try to adapt your example above to use roi_sum = hs.interactive(s_roi.nansum, recompute_out_event=None)
.
I am using above code to view the spectrum at my roi, while doing so, I encounter a flat XRF spectra shown in image
both orange and red are nearly (even when they overlap) the default eds signal navigator gives a spectrum but the sum plot is giving a flat signal, is it a but or I am doing something wrong.