Skip to content

Add sol outboard enum - #4514

Merged
timothy-nunn merged 10 commits into
mainfrom
add_sol_outboard_enum
Aug 14, 2026
Merged

Add sol outboard enum#4514
timothy-nunn merged 10 commits into
mainfrom
add_sol_outboard_enum

Conversation

@chris-ashe

Copy link
Copy Markdown
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 requested a review from a team as a code owner August 11, 2026 10:17
@chris-ashe chris-ashe added Refactor Scrape off Layer Relating to the scrape off layer outside the plasma separatrix labels Aug 11, 2026
@codecov-commenter

codecov-commenter commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 52.77778% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.32%. Comparing base (a3d041d) to head (c5597d4).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
process/models/physics/scrape_off_layer.py 5.88% 16 Missing ⚠️
process/models/physics/physics.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4514      +/-   ##
==========================================
+ Coverage   49.13%   49.32%   +0.19%     
==========================================
  Files         152      150       -2     
  Lines       29806    29802       -4     
==========================================
+ Hits        14644    14700      +56     
+ Misses      15162    15102      -60     

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

@timothy-nunn timothy-nunn self-assigned this Aug 11, 2026
Comment thread process/models/physics/scrape_off_layer.py
Comment thread process/models/physics/scrape_off_layer.py
Comment thread process/models/physics/scrape_off_layer.py Outdated
Comment thread process/data_structure/physics_variables.py Outdated
Comment thread process/data_structure/physics_variables.py Outdated
@chris-ashe
chris-ashe force-pushed the add_sol_outboard_enum branch from 012f5b0 to d5257cb Compare August 13, 2026 13:15
@chris-ashe
chris-ashe force-pushed the add_sol_outboard_enum branch from d5257cb to 7dda017 Compare August 13, 2026 13:15
Comment on lines +44 to +52
if (
OutbordSOLPowerDecayLengthModel(
self.data.physics.i_len_sol_outboard_power_decay
)
== OutbordSOLPowerDecayLengthModel.USER_INPUT
):
self.data.physics.len_sol_outboard_power_decay = (
self.data.physics.len_sol_outboard_power_decay
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This block of code is not doing anything. Maybe just add a comment saying that OutbordSOLPowerDecayLengthModel.USER_INPUT would mean that len_sol_outboard_power_decay is already set to the user-input value

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Would you say keep the condition check just for verbosity and add a pass statement with a comment or just remove the whole condition check and just have the comment?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The latter, having 'useless' condition checks is a code smell. A comment will suffice

Comment thread process/models/physics/scrape_off_layer.py Outdated
@timothy-nunn
timothy-nunn merged commit feb7ef3 into main Aug 14, 2026
8 of 11 checks passed
@timothy-nunn
timothy-nunn deleted the add_sol_outboard_enum branch August 14, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Scrape off Layer Relating to the scrape off layer outside the plasma separatrix Variable rename

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants