Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the
calculate_vertical_build
method inprocess/build.py
to improve readability and maintainability by replacing the variablevbuild
withvertical_build_upper
. Additionally, it updates the logic to use more descriptive variable names and modifies some calculations related to plasma and structure dimensions.Refactoring for readability:
vbuild
withvertical_build_upper
throughout the method to improve clarity and better align with the variable's purpose. This change affects multiple calculations and assignments, ensuring the new variable name is consistently used.🐛 Adjustments to plasma-related calculations:
dz_fw_plasma_gap
withdz_xpoint_divertor
, reflecting a change in the model's approach to scrape-off layer dimensions. [1] [2]Improvements to structure dimension calculations:
tf_height
) to use the newvertical_build_upper
variable, ensuring consistency in the updated logic.build_variables.tfoffset
to usevertical_build_upper
instead ofvbuild
, aligning with the refactored variable naming.Single null case logic updates:
dz_vv_upper
anddz_fw_upper
based on averages of upper and lower dimensions, improving the handling of single null configurations.## DescriptionChecklist
I confirm that I have completed the following checks: