Skip to content

detect_peakWL, wrong FWHM calculation #38

@Predator83

Description

@Predator83

In Luxpy version 1.11.2 I experience the following issue:

When using

lx.detect_peakwl(spd, n=1, verbosity=0)[0]["fwhms"][0]
to get the FWHM of a spectrum, the function returns a significantly too low value for the FWHM. This issue appears, when the spectrum is cut at the short wavelength side, meaning the spectrum does not drop to 0 at the short wavelength end.

Replacing the intensity value at the lowest wavlength value by 0 results in a correct calculation of FWHM.

I am wondering if this is a bug or if it is a feature (for example to compensate for a tilted baseline or noise in the measurement) :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions