Skip to content

4400 remove hardcoded bc20m and tc0m - #4478

Open
chris-ashe wants to merge 8 commits into
mainfrom
4400-remove-hardcoded-bc20m-and-tc0m
Open

4400 remove hardcoded bc20m and tc0m#4478
chris-ashe wants to merge 8 commits into
mainfrom
4400-remove-hardcoded-bc20m-and-tc0m

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 linked an issue Jul 27, 2026 that may be closed by this pull request
…them with dynamic properties from SuperconductorModel
@codecov-commenter

codecov-commenter commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 34.61538% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.69%. Comparing base (808481e) to head (a7ba28c).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
process/models/stellarator/coils/coils.py 5.26% 18 Missing ⚠️
process/models/tfcoil/superconducting.py 16.66% 10 Missing ⚠️
process/models/pfcoil.py 50.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4478      +/-   ##
==========================================
+ Coverage   48.64%   48.69%   +0.04%     
==========================================
  Files         151      151              
  Lines       29704    29737      +33     
==========================================
+ Hits        14449    14479      +30     
- Misses      15255    15258       +3     

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

@chris-ashe
chris-ashe requested a review from clmould July 27, 2026 10:09
@chris-ashe
chris-ashe marked this pull request as ready for review July 27, 2026 10:09
@chris-ashe
chris-ashe requested a review from a team as a code owner July 27, 2026 10:09

@clmould clmould 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.

A few small things

Comment thread process/models/superconductors.py Outdated
Comment thread process/models/superconductors.py Outdated
BI2212 = (
2,
SuperconductorMaterial.BI2212,
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.

Could any with None have a brief comment to explain why?

Comment thread process/models/stellarator/coils/coils.py Outdated
@@ -129,8 +128,8 @@ def jcrit_from_material(
j_crit_cable = j_crit_cable_from_fraction(j_crit_sc, f_tf_conductor_copper, f_he)

elif i_tf_sc_mat == 7: # Durham Ginzburg-Landau Nb-Ti parameterisation

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.

Should these if/elif statements be using the SuperconductorModel instead of the corresponding integer?

(I can make a separate issue for papercuts if out of scope of this pr)

chris-ashe and others added 2 commits July 28, 2026 14:39
Co-authored-by: clmould <86794332+clmould@users.noreply.github.com>
@chris-ashe
chris-ashe requested a review from clmould July 28, 2026 13:46

@clmould clmould 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.

1 tiny thing

CROCO_REBCO = (
6,
SuperconductorMaterial.REBCO,
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.

Could this have a comment here too plz

@clmould clmould self-assigned this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove hardcoded bc20m and tc0m

3 participants