Magnus Nord
Magnus Nord
I reimplemented most of the `get_edge_onset` function, so it no longer interpolates the whole spectrum. Now it finds the index in the original spectrum, and uses a spline between that...
For some reason your previous comments about user guide/docstrings changes doesn't show up for me. Was this the comment about this? > A clear discussion of the limits of the...
I replaced the spline with a simple linear calculation. However, the `get_edge_onset` function still only works on single spectra, and I don't have time to improve that aspect of it...
This also extends to the crop tool
Any good examples on how to make the recording functionality work?
Added unit tests for the processing itself
The changes in this commit fixes this, but its quite sloppy: https://github.com/magnunor/hyperspyUI/commit/7124b1ec41556bc3f9e0b990f00dd44109fcf7b2 The `fs.data = np.abs(fs.data)` is due to matplotlib not being able to handle imaginary data. The `if str(u.__class__)...
I updated the code to work for HyperSpy 1.5, improved the text (including the FWHM mentioned above), and several minor code improvements. Should be ready for review or merging!
Good point! I added the power law background into the main model.
Is it ok if I merge this pull request? I've had several people looking for a notebook like this. (Asking, since I'm one of its authors).