Skip to content

Clean up process_output#4405

Merged
clmould merged 3 commits into
mainfrom
remove-bytes
Jul 14, 2026
Merged

Clean up process_output#4405
clmould merged 3 commits into
mainfrom
remove-bytes

Conversation

@timothy-nunn

Copy link
Copy Markdown
Collaborator

Remove legacy handling of bytes (required with the Fortran interface)

Update PROCESS to only use ovarre where able to.

@timothy-nunn timothy-nunn requested a review from a team as a code owner July 2, 2026 09:11
@timothy-nunn timothy-nunn marked this pull request as draft July 2, 2026 16:22
@codecov-commenter

codecov-commenter commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 2.59434% with 413 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.63%. Comparing base (28a0153) to head (a9ab6c8).

Files with missing lines Patch % Lines
process/models/build.py 0.00% 82 Missing ⚠️
process/models/physics/physics.py 0.00% 80 Missing ⚠️
process/models/blankets/blanket_library.py 0.00% 35 Missing ⚠️
process/models/physics/bootstrap_current.py 0.00% 20 Missing ⚠️
process/core/scan.py 0.00% 18 Missing ⚠️
process/models/physics/current_drive.py 0.00% 18 Missing ⚠️
process/models/physics/plasma_current.py 0.00% 16 Missing ⚠️
process/models/physics/plasma_geometry.py 0.00% 14 Missing ⚠️
process/models/blankets/dcll.py 0.00% 13 Missing ⚠️
process/models/costs/costs.py 0.00% 13 Missing ⚠️
... and 20 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4405      +/-   ##
==========================================
- Coverage   48.64%   48.63%   -0.01%     
==========================================
  Files         151      151              
  Lines       29673    29670       -3     
==========================================
- Hits        14433    14429       -4     
- Misses      15240    15241       +1     

☔ 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 marked this pull request as ready for review July 3, 2026 08:02
@clmould clmould self-assigned this Jul 3, 2026
Comment thread process/core/process_output.py Outdated
ovarre(constants.MFILE, descr, varnam, value, output_flag)


def ocosts(file, varnam: str, descr: str, value):

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 ocosts be removed too?

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.

You'll notice that ocosts has a different order of arguments so it can be replaced, but not easily. It is also used by some other packages.

Comment on lines 221 to 222
def ovarrf(file, descr: str, varnam: str, value, output_flag: str = ""):
ovarre(file, descr, varnam, value, output_flag)

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.

Think this needs deleting too (if I try and suggest the change it keeps not working/formatting weirdly so having to comment this!)

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.

I would like to but need to work with @j-a-foster first to update some external packages that still use ovarrf

@clmould clmould Jul 14, 2026

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.

Okay makes sense! I have made a 'blocked' issue for that #4439 so that can be done at a later date when possible

@clmould clmould merged commit db9c8b1 into main Jul 14, 2026
10 of 11 checks passed
@clmould clmould deleted the remove-bytes branch July 14, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants