Spectral curve and Lorentz correction support#195
Spectral curve and Lorentz correction support#195jglaser wants to merge 19 commits intors-station:mainfrom
Conversation
|
This PR should be ready for review and CI |
kmdalton
left a comment
There was a problem hiding this comment.
This looks good for the most part. I highlighted some places where the documentation could be improved (but it is pretty good already). I asked for two small refactors to your Scaler.
Finally, please figure out whether your Scaler is compatible with --scale-file (see test). If so, let's add an explicit test for it. Otherwise, we should warn users that it isn't supported. With at most one trainable variable, my suspicion is it won't be a heavily a used feature, but I'd just like to make sure.
|
hi @jglaser -- just checking in. let me know if you need any help with this or if my review wasn't clear. |
done |
This PR is a proof-of-concept for how to integrate physics-based corrections as a deterministic scaling function, allowing for a single trainable, and multiplicative intensity scale. See issue #194 for a discussion of the conceptual dissonance between this physics-based approach and the standard data-driven one. We should refine this PR as necessary.
Example usage:
Apply the wavelength-dependent instrument correction, stored in a two-column text file called
spectral_curve.txt, and the analytical Lorentz correction, during harmonic deconvolution: