Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Opacity from beamdata #20

wants to merge 7 commits into from

Conversation

astellhorn
Copy link
Collaborator

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).

Comment on lines 311 to 316
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
Copy link
Member

@SimonHeybrock SimonHeybrock Jan 9, 2024

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?

@SimonHeybrock SimonHeybrock marked this pull request as draft January 10, 2024 14:06
@SimonHeybrock
Copy link
Member

Superseded by #27.

@SimonHeybrock SimonHeybrock deleted the opacity-from-beamdata branch January 25, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants