The conversion from flux to magnitude does not correctly calculate the uncertainty if the uncertainty is greater than the flux measurement, and the magnitude uncertainty will be nan (tries to take the log of a negative number).
Suggest adding a check if error>flux in line 474 of species.analysis.photometry, and if so, only return error_app_lower.
The conversion from flux to magnitude does not correctly calculate the uncertainty if the uncertainty is greater than the flux measurement, and the magnitude uncertainty will be nan (tries to take the log of a negative number).
Suggest adding a check
if error>flux
in line 474 of species.analysis.photometry, and if so, only returnerror_app_lower
.