Rework spectra extraction and add a test
The weights were not normalized correctly, but at the end the result was correct thanks to the flux conservation correction. So this mainly add a tests with fake data, and some comments.
The weights were not normalized correctly, but at the end the result was correct thanks to the flux conservation correction. So this mainly add a tests with fake data, and some comments.