Skip to content

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.

@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 54.05405% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.56%. Comparing base (e827793) to head (51841da).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
process/physics.py 53.52% 33 Missing ⚠️
process/main.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4085      +/-   ##
==========================================
+ Coverage   46.49%   46.56%   +0.06%     
==========================================
  Files         124      124              
  Lines       28955    28974      +19     
==========================================
+ Hits        13464    13491      +27     
+ Misses      15491    15483       -8     

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

@chris-ashe chris-ashe force-pushed the create_physics_inductance_class branch from ad631d1 to 9a6bf37 Compare February 11, 2026 14:59
@chris-ashe chris-ashe marked this pull request as ready for review February 11, 2026 14:59
@chris-ashe chris-ashe requested a review from a team as a code owner February 11, 2026 14:59
MENARD = 2


class PlasmaInductance:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a run() method to this model? Then we could move some of the calculations into it. I think we might be able to move these calculations into the run method:

  • ind_plasma_internal_norm_wesson
  • ind_plasma_internal_norm_menard
  • ind_plasma_internal_norm_iter_3

You probably could't move ind_plasma_internal_norm quite yet because it is used later on in physics.

Comment on lines 1523 to 1531
# Calculate ind_plasma_internal_norm based on i_ind_plasma_internal_norm
try:
model = IndInternalNormModel(
int(physics_variables.i_ind_plasma_internal_norm)
)
physics_variables.ind_plasma_internal_norm = (
ind_plasma_internal_norm_calculations[
int(physics_variables.i_ind_plasma_internal_norm)
]
self.inductance.get_ind_internal_norm_value(model)
)
else:
except ValueError:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move all of this logic into a method of PlasmaIndustance so that here you just do

physics_variables.ind_plasma_internal_norm = self.inductance.calculate_ind_plasma_internal_norm(...)

…ance class and streamline execution with run method
@timothy-nunn timothy-nunn merged commit 774b255 into main Feb 12, 2026
10 checks passed
@timothy-nunn timothy-nunn deleted the create_physics_inductance_class branch February 12, 2026 13:31
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.

3 participants