Skip to content

Mc refactor, nested opacity state - #3850

Draft
andrewfullard wants to merge 9 commits into
tardis-sn:masterfrom
andrewfullard:mc-refactor-opacity
Draft

andrewfullard wants to merge 9 commits into
tardis-sn:masterfrom
andrewfullard:mc-refactor-opacity

Conversation

@andrewfullard

@andrewfullard andrewfullard commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📝 Description

Type: 🎢 infrastructure

Because we just can't stop modifying how we deal with opacities, this puts all the opacity parts into one object that can be put into the MC part.

Based on #3835

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@andrewfullard andrewfullard added montecarlo 🎲 restructure opacity Related to opacity extensions in TARDIS labels Nov 25, 2026
@andrewfullard
andrewfullard marked this pull request as draft November 25, 2026 18:40
@tardis-bot

Copy link
Copy Markdown
Contributor

*beep* *bop*

Hi, human.

I'm the @tardis-bot and I noticed that your email is not associated with an ORCID ID in our database.

Please add your email and ORCID ID to the .orcid.csv file in your current branch and push the changes to this pull request.

If you don't have an ORCID ID yet, you can create one for free at orcid.org. ORCID IDs help ensure you get proper credit for your scientific contributions.

The format should be:

email,orcid
your.email@example.com,0000-0000-0000-0000

Runs: ORCID check · comment publisher

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.52%. Comparing base (aeb5993) to head (a69424b).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
tardis/transport/montecarlo/physics.py 90.00% 4 Missing ⚠️
...ardis/opacities/continuum/continuum_state_numba.py 80.00% 1 Missing ⚠️
tardis/opacities/opacity_state.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3850      +/-   ##
==========================================
+ Coverage   71.35%   71.52%   +0.17%     
==========================================
  Files         207      209       +2     
  Lines       15983    16058      +75     
==========================================
+ Hits        11404    11486      +82     
+ Misses       4579     4572       -7     

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

montecarlo 🎲 opacity Related to opacity extensions in TARDIS restructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants