Skip to content

Allow workflows to specify n_e tolerance and fix it for the IIP workflow - #3834

Merged
connor-mcclellan merged 1 commit into
tardis-sn:masterfrom
andrewfullard:use-charge-conserved-n_e
Nov 16, 2026
Merged

connor-mcclellan merged 1 commit into
tardis-sn:masterfrom
andrewfullard:use-charge-conserved-n_e

Conversation

@andrewfullard

@andrewfullard andrewfullard commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

📝 Description

Type: 🚀 feature

The standard plasma IonNumberDensity solved electron number density down to within 5%, which was adversely influencing the first MC run of the IIP workflow. The loop does not really correctly pick the electron number density, but that is out of scope for now (would break most tardis regression data if we changed that)

This PR fixes that by allowing the plasma factory to configure the electron number density threshold. For IIP this is set to 1e-10, which results in a much closer match to CTARDIS initial state.

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

@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 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.35%. Comparing base (6d6732c) to head (b482e1b).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3834      +/-   ##
==========================================
+ Coverage   71.30%   71.35%   +0.05%     
==========================================
  Files         207      207              
  Lines       15969    15987      +18     
==========================================
+ Hits        11387    11408      +21     
+ Misses       4582     4579       -3     

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

@connor-mcclellan
connor-mcclellan merged commit 479b98d into tardis-sn:master Nov 16, 2026
29 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants