Filters with decreasing wavelengths lead to wrong results
Sometime filter response curves are provided with decreasing wavelengths. Such filters can be imported into CIGALE database without error but when they are used the produce negative fluxes.
The problem comes from the filter normalisation and from the integration with trapz which produces negative values because of the order of the wavelengths.