8000 Update `portsz()` by chris-ashe · Pull Request #3705 · ukaea/PROCESS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update portsz() #3705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 10, 2025
Merged

Update portsz() #3705

merged 9 commits into from
Jul 10, 2025

Conversation

chris-ashe
Copy link
Collaborator
@chris-ashe chris-ashe commented Jul 3, 2025
  • Documentation for the derivation of the beam access has been added to
    nbi_overview.md

  • Function has been refactorized to take inputs instead of changing globals

🔄 Renames

portsx() -> calculate_beam_port_size()

rtanbeam -> radius_beam_tangency
beamwd -> dx_beam_duct
rtanmax -> radius_beam_tangency_max
frbeam -> f_radius_beam_tangency_rmajor
fportsz -> fradius_beam_tangency

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 self-assigned this Jul 3, 2025
@chris-ashe chris-ashe added Documentation Improvements or additions to documentation Variable rename Neutral Beam labels Jul 3, 2025
@codecov-commenter
Copy link
codecov-commenter commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 43.47826% with 26 lines in your changes missing coverage. Please review.

Project coverage is 36.91%. Comparing base (515f8c3) to head (b4625ed).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
process/io/plot_proc.py 0.00% 14 Missing ⚠️
process/current_drive.py 36.36% 7 Missing ⚠️
process/build.py 78.94% 4 Missing ⚠️
process/caller.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3705      +/-   ##
==========================================
- Coverage   37.73%   36.91%   -0.82%     
==========================================
  Files          88       88              
  Lines       22761    23308     +547     
==========================================
+ Hits         8588     8605      +17     
- Misses      14173    14703     +530     

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

…quations and clarifying the maximum tangency radius constraints.
… into the run method for improved clarity and efficiency
@chris-ashe chris-ashe requested a review from clmould July 3, 2025 09:27
@chris-ashe chris-ashe marked this pull request as ready for review July 3, 2025 09:28
… directly call calculate_beam_port_size for improved clarity and efficiency
Copy link
Collaborator
@clmould clmould left a comment

Choose a reason for hiding this comment

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

All looks good

@clmould clmould self-requested a review July 10, 2025 16:38
@clmould clmould merged commit 504f452 into main Jul 10, 2025
18 checks passed
clmould added a commit that referenced this pull request Jul 10, 2025
This reverts commit 504f452.
OceanNuclear pushed a commit that referenced this pull request Jul 12, 2025
* 🔄 Rename rtanbeam to radius_beam_tangency for clarity and consistency across documentation and code

* 🔄 Updated variable names from beamwd to dx_beam_duct across multiple files for consistency and clarity.

* 🔄 Rename rtanmax to radius_beam_tangency_max for clarity and consistency across code and documentation

* 🔄 Rename portsz function to calculate_beam_port_size for clarity and consistency in method naming

* 🔄 Rename variable frbeam to f_radius_beam_tangency_rmajor for clarity and consistency across documentation and code

* 📝 Enhance documentation for neutral beam injection, adding detailed equations and clarifying the maximum tangency radius constraints.

* 🔄 Refactor build process by consolidating beam port size calculations into the run method for improved clarity and efficiency

* 🔄 Rename variable fportsz to fradius_beam_tangency for clarity and consistency across code and documentation

* 🔄 Refactor test_calculate_beam_port_size to remove monkeypatching and directly call calculate_beam_port_size for improved clarity and efficiency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Neutral Beam Variable rename
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0