PyMieScatt
PyMieScatt copied to clipboard
Mie / Rayleigh threshold overridden
Hello,
According to the documentation, the function AutoMieQ should give the possibility to automatically switch to the Rayleigh approximation when x = pi*diameter/wavelength is below a given threshold. However, to my understanding, the function MieQ overrides this threshold if it is below 0.05 :
https://github.com/bsumlin/PyMieScatt/blob/d075b442731edeb4a38b3b99cb1867c6c87552be/PyMieScatt/Mie.py#L22-L23
From the documentation, I wouldn't even expect the two lines above to be in the MieQ function.
Also, I found that a threshold of 0.05 sometimes leads to significant errors.