Skip to content

Create plasma current class#4086

Draft
chris-ashe wants to merge 23 commits intomainfrom
create_plasma_current_class
Draft

Create plasma current class#4086
chris-ashe wants to merge 23 commits intomainfrom
create_plasma_current_class

Conversation

@chris-ashe
Copy link
Collaborator

Description

Checklist

I confirm that I have completed the following checks:

  • My changes follow the PROCESS style guide
  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

… redundant function from physics_functions.py
…esson, Original Scaling, Menard, Tholerus, and Stambaugh relations
…ss methods and remove redundant static methods
…and PlasmaInductance class for improved clarity and maintainability
…s for improved organization and maintainability
- Updated test_physics.py to instantiate PlasmaCurrent for calculating plasma current and related methods.
- Replaced direct calls to calculate_plasma_current_peng and calculate_current_coefficient_hastie with PlasmaCurrent class methods.
- Modified test_stellarator.py to include PlasmaCurrent in the stellarator setup.
@chris-ashe chris-ashe added Physics Relating to the physics models Refactor labels Feb 8, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.84%. Comparing base (5ea7543) to head (935e8f0).
⚠️ Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
process/main.py 40.00% 3 Missing ⚠️
process/stellarator.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4086      +/-   ##
==========================================
- Coverage   46.49%   45.84%   -0.66%     
==========================================
  Files         123      124       +1     
  Lines       28777    32016    +3239     
==========================================
+ Hits        13381    14677    +1296     
- Misses      15396    17339    +1943     

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

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

Labels

Physics Relating to the physics models Refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants