-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opacity from beamdata #20
Conversation
…ty from beam-data fit to data
src/ess/polarization/base.py
Outdated
def Intensity_direct_beam_cell(time, opacity_cell): | ||
return direct_beam*transmission_empty_glass*sc.exp(-opacity_cell) | ||
|
||
popt, pcov = sc.curve_fit(['time'], reduce_dims = ['wavelength'], Intensity_direct_beam_cell, direct_beam_cell) | ||
# Q: correct to use 'time' on x-axis? | ||
# expected output: popt = opacity = single parameter for each cell, wavelength independent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get how you plan to drop the wavelength dependence from the data / equations. The direct beam data is wavelength dependent, so I thought this must be taken into account in the fit function. Can you write this down clearly "on paper" (i.e., as part of #16) before moving to implementation?
Superseded by #27. |
We need the opacity as input for the 3He-polarization. Here the opacity is fit to the equation given by beamdata measurements. Using reduce_dims[wavelength] should (correct?) fit one value of opacity to all I(lambda).