Skip to content

Adds attenuation transmission interconversion calculations#2047

Open
Matt-Carre wants to merge 5 commits intomainfrom
2040_attenuation_transmission
Open

Adds attenuation transmission interconversion calculations#2047
Matt-Carre wants to merge 5 commits intomainfrom
2040_attenuation_transmission

Conversation

@Matt-Carre
Copy link
Copy Markdown

Fixes #2040

This adds calculations to convert between the:
attenuation and natural log of transmission and back,
transmission fraction and attenuation and back

Also includes tests for these functions.

@Matt-Carre Matt-Carre requested a review from a team as a code owner May 5, 2026 12:08
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.11%. Comparing base (0beeb31) to head (10f65f8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2047   +/-   ##
=======================================
  Coverage   99.11%   99.11%           
=======================================
  Files         327      328    +1     
  Lines       12814    12827   +13     
=======================================
+ Hits        12701    12714   +13     
  Misses        113      113           

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

Comment thread src/dodal/common/general_maths/transmission_interconversion.py Outdated
Comment thread tests/common/general_maths/test_transmission_interconversion.py Outdated
Comment thread tests/common/general_maths/test_transmission_interconversion.py Outdated
Comment thread src/dodal/common/general_maths/transmission_interconversion.py Outdated
Comment thread src/dodal/common/general_maths/transmission_interconversion.py Outdated
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.

Extend beamline-relevant arithmetic module with attenuation-transmission interconversion

3 participants