Skip to content

Correct transmission calculation#449

Merged
daniloefl merged 7 commits intomasterfrom
fix/cb_transmission
Jan 30, 2026
Merged

Correct transmission calculation#449
daniloefl merged 7 commits intomasterfrom
fix/cb_transmission

Conversation

@daniloefl
Copy link
Contributor

@daniloefl daniloefl commented Jan 26, 2026

This PR factors out the cross section and includes the XFEL polarization in the CookieboxCalibration, so that the polarization of the beam can be included in the transmission calculation.

The only API change is the inclusion of the beta, P1 and tilt parameters in the constructor, which allows one to set the photo-electron angular dependence parametrization. The default setup corresponds to a standard configuration of horizontal polarization. They are also serialised to HDF5.

@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.92%. Comparing base (ee31489) to head (8961ba8).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #449      +/-   ##
==========================================
+ Coverage   72.87%   72.92%   +0.05%     
==========================================
  Files          35       35              
  Lines        6093     6105      +12     
==========================================
+ Hits         4440     4452      +12     
  Misses       1653     1653              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@daniloefl daniloefl requested a review from philsmt January 26, 2026 16:34
@daniloefl
Copy link
Contributor Author

I updated the PR description after the changes discussed. If there are no other comments, I will merge it.

@daniloefl daniloefl merged commit f6e7c4e into master Jan 30, 2026
10 checks passed
@daniloefl daniloefl deleted the fix/cb_transmission branch January 30, 2026 14:30
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.

3 participants