Moderninze the code
BUG_FIX:  was always returning nan for single spectra.
Automatic style corrections courtesy of autopep8.

Add test to detect the bug.
Warn the user when no inflexion point is found in range.
Automatic style corrections courtesy of autopep8.
Improve docstring.
Automatic style corrections courtesy of autopep8.
Merge pull request #298 from francisco-dlp/BUG_FIX_estimate_elastic_scattering_threshold

Bug fix estimate elastic scattering threshold