Closed jlaehne closed 1 year ago
Patch coverage: 100.00
% and project coverage change: -0.55
:warning:
Comparison is base (
d3cf6ac
) 100.00% compared to head (014c93b
) 99.45%.
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Description of the change
I realized that for a map the new centroid function, similar to e.g.
valuemax
andindexmax
in HyperSpy returns aBaseSignal
with 2 navigation dimensions and 0D signal, which theoretically makes sense, but is inconvenient for plotting as it plots including the navigator, which makes little sense for 0D signals, and colormap cannot be changed.In contrast,
estimate_peak_width
returns the transposed signal, thusSignal2D
object without navigation dimensions, which is more convenient for plotting - and is okay in the sense that it is just an image of values for the different positions. Theas_signal
command for parameters from a fit also results inSignal2D
. I therefore think, it is the more sensible output here.We should consider making that more consistent also in HyperSpy (e.g. with the 2.0 release).
As I was at it, I also removed optional parameters from the title if they are not set.
Progress of the PR
Minimal example of the bug fix or the new feature
now results in