Closed AndreyTavleev closed 2 years ago
Do we need to check for infinites, NaNs and subnormal numbers (not sure the last one is possible in python)?
Why do we need np.abs?
I realised, that we check whether composition values are non-negative before the signif() call. So we don't need np.abs. We can additionally check composition for infty and NaN before the normalisation calculation.
Wrong processing of zero abundances, when setting up the chemical composition:
returns
The error is in opacity.pyx in
signif
function (calculation of log10(0)). The solution is to change two lines:Also why do you use
math
instead ofnumpy
?math
is used only here in two places.