Xrf fit

same complaint about logic switch on `spectral_binning`