Skip to content

Add sol outboard enum - #4514

Open
chris-ashe wants to merge 9 commits into
mainfrom
add_sol_outboard_enum
Open

Add sol outboard enum#4514
chris-ashe wants to merge 9 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 50.00000% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.31%. Comparing base (a3d041d) to head (012f5b0).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
process/models/physics/scrape_off_layer.py 5.26% 18 Missing ⚠️
process/models/physics/physics.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4514      +/-   ##
==========================================
+ Coverage   49.13%   49.31%   +0.18%     
==========================================
  Files         152      150       -2     
  Lines       29806    29804       -2     
==========================================
+ Hits        14644    14697      +53     
+ Misses      15162    15107      -55     

☔ 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
self.data.physics.len_plasma_sol_mast14_power_decay_2
)

self.data.physics.a_plasma_outboard_sol_parallel = self.calculate_upstream_sol_outboard_parallel_area( # noqa: E501

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.

You can use parentheses to put the function call on the next line and remove the need to use noqa statement

b_plasma_surface_poloidal_average=self.data.physics.b_plasma_surface_poloidal_average,
)

self.data.physics.a_plasma_outboard_sol_eich13_parallel = self.calculate_upstream_sol_outboard_parallel_area( # noqa: E501

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.

Can we do this here too

)
po.ocmmnt(
self.outfile,
f"-> {OutbordSOLPowerDecayLengthModel(self.data.physics.i_len_sol_outboard_power_decay).description} ", # noqa: E501

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.

Again, not a fan of skipping line length checks because it could be avoided here

Comment thread process/data_structure/physics_variables.py
Comment on lines +12 to +14
EICH_2013 = (0, "Eich 2013")
MAST_2014_1 = (1, "MAST 2014-1")
MAST_2014_2 = (2, "MAST 2014-2")

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.

Are the actual models referenced in the docs? If not, can we add a docstring here that does so.

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.

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