Skip to content

remove init constants and rename init all module vars#4379

Open
clmould wants to merge 4 commits into
mainfrom
4335-remove-init_constants-and-rename-init_all_module_vars
Open

remove init constants and rename init all module vars#4379
clmould wants to merge 4 commits into
mainfrom
4335-remove-init_constants-and-rename-init_all_module_vars

Conversation

@clmould

@clmould clmould commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Closes #4335

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.

@codecov-commenter

codecov-commenter commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 48.84%. Comparing base (ddcba6c) to head (41c9c37).

Files with missing lines Patch % Lines
process/main.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4379      +/-   ##
==========================================
- Coverage   48.85%   48.84%   -0.02%     
==========================================
  Files         151      151              
  Lines       29385    29377       -8     
==========================================
- Hits        14356    14348       -8     
  Misses      15029    15029              

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

@clmould clmould force-pushed the 4335-remove-init_constants-and-rename-init_all_module_vars branch 2 times, most recently from a7367fd to 6cd2863 Compare June 24, 2026 15:51
@clmould clmould marked this pull request as ready for review June 25, 2026 15:57
@clmould clmould requested a review from a team as a code owner June 25, 2026 15:57
@clmould clmould force-pushed the 4335-remove-init_constants-and-rename-init_all_module_vars branch from 6cd2863 to bb03ebc Compare June 25, 2026 15:58
@timothy-nunn timothy-nunn requested a review from chris-ashe June 25, 2026 15:59

@timothy-nunn timothy-nunn left a 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.

Will await @chris-ashe review since he suggested removing the densities as inputs and setting them as constant

"ims": "i_blkt_module_segmentation",
"i_coolant_pumping": "i_p_coolant_pumping",
"vfblkt": "f_a_blkt_cooling_channels",
"dalu": "den_aluminium",

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.

Needs to be kept in "dalu": None,

"dalu": "den_aluminium",
"dcase": "den_tf_coil_case",
"dcondins": "den_tf_wp_turn_insulation",
"dcopper": "den_copper",

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.

Needs to be kept in "dcopper": None,

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.

Please mark den_copper and den_aluminium as obsolete too (e.g. "den_aluminium": None)

@clmould clmould requested a review from timothy-nunn June 26, 2026 09:05
Comment thread process/core/constants.py Outdated
Comment thread process/core/constants.py Outdated
Comment thread process/core/constants.py
"""Average number of days in a year"""

ACCELERATION_GRAVITY = 9.81
"""Acceleration due to gravity [m/s2]"""

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.

Suggested change
"""Acceleration due to gravity [m/s2]"""
"""Acceleration due to gravity on Earth's surface [m/]"""

Just adding this in here as I saw it below and it annoyed me

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.

Will go in new PR

@clmould clmould force-pushed the 4335-remove-init_constants-and-rename-init_all_module_vars branch from 2960e07 to af83215 Compare June 26, 2026 10:42
@clmould clmould force-pushed the 4335-remove-init_constants-and-rename-init_all_module_vars branch 2 times, most recently from 95a4b72 to edaf542 Compare June 26, 2026 12:01
@clmould clmould force-pushed the 4335-remove-init_constants-and-rename-init_all_module_vars branch from edaf542 to 41c9c37 Compare June 26, 2026 12:03
@clmould clmould requested a review from chris-ashe June 26, 2026 12:03
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.

Rename init_all_module_vars() and remove init_constants()

4 participants